No articles match
The tableby function2 years ago
Introduction | Simple Example | Pretty text version of table | Pretty Rmarkdown version of table | Data frame version of table | Summaries using standard R code | Modifying Output | Add labels | Change summary statistics globally | Change summary statistics within the formula | Controlling Options for Categorical Tests (Chisq and Fisher's) | Modifying the look & feel in Word documents | Additional Examples | 1. Summarize without a group/by variable | 2. Display footnotes indicating which "test" was used | 3. Summarize an ordered factor | 4. Summarize a survival variable | 5. Summarize date variables | 6. Summarize multiple variables without typing them out | 7. Subset the dataset used in the analysis | 8. Create combinations of variables on the fly | 9. Transform variables on the fly | 10. Subsetting (change the ordering of the variables, delete a variable, sort by p-value, filter by p-value, show only certain by-levels) | 11. Merge two tableby objects together | 12. Add a title to the table | 13. Modify how missing values are displayed | 14. Modify the number of digits used | 15. Create a user-defined summary statistic | 16. Use case-weights for creating summary statistics | 17. Create your own p-value and add it to the table | 18. For two-level categorical variables or one-line numeric variables, simplify the output. | 19. Use tableby within an Sweave document | 20. Export tableby object to a .CSV file | 21. Write tableby object to a separate Word or HTML file | 22. Use tableby in R Shiny | 23. Use tableby in bookdown | 24. Adjust tableby for multiple p-values | 25. Tabulate multiple endpoints | 26. Tabulate data by a non-test group (strata) | Available Function Options | Summary statistics | Testing options | tableby.control settings | summary.tableby settings
Time Varying3 years ago
What exactly does tv::time_varying() do? | FAQ | 1. Does tv really loop over every single feature for every row in the grid independently? | 2. Does tv require any exposure history to get the counts or time-since right? | 3. The look back in the specs is relative to what point in time? | 4. Can I get the grid returned to me so I can see what it's doing? | 5. Why is my tv on prospective patients really slow? | An example | Overclocking the time_varying() function | What if a variable doesn't change over the exposure? | Multiple exposures per person | Only look back to the beginning of the exposure instead of a fixed look back | Only look at things from before the exposure instead of a fixed look back | Only break every hour | Create an indicator for if a situation applies | Create a count of how many times a situation applies
Adjusting for Players in the Elo Framework3 years ago
Another Application
Comparison Methods3 years ago
Comparison Models | Win/Loss Logistic Regression | Logistic Regression | Markov Chain | A note about LRMC | Colley Matrix Method | Modeling Margin of Victory Instead of Wins
The modelsum function5 years ago
Introduction | Simple Example | Pretty text version of table | Pretty Rmarkdown version of table | Data frame version of table | Add an adjustor to the model | Models for each endpoint type | Gaussian | Fit and summarize linear regression model | Extract data using the broom package | Create a summary table using modelsum | Binomial | Fit and summarize logistic regression model | Extract data using broom package | Survival | Fit and summarize a Cox regression model | Poisson | Example 1: fit and summarize a Poisson regression model | Example 2: fit and summarize a Poisson regression model | Additional Examples | 1. Change summary statistics globally | 2. Add labels to independent variables | 3. Don't show intercept values | 4. Don't show results for adjustment variables | 5. Summarize multiple variables without typing them out | 6. Subset the dataset used in the analysis | 7. Create combinations of variables on the fly | 8. Transform variables on the fly | 9. Change the ordering of the variables or delete a variable | 10. Merge two modelsum objects together | 11. Add a title to the table | 12. Modify how missing values are treated | 13. Modify the number of digits used | 14. Use case-weights in the models | 15. Use modelsum within an Sweave document | 16. Export modelsum results to a .CSV file | 17. Write modelsum object to a separate Word or HTML file | 18. Use modelsum in R Shiny | 23. Use modelsum in bookdown | 24. Model multiple endpoints | 25. Model data by a non-test group (strata) | 26. Add multiple sets of adjustors to the model | Available Function Options | Summary statistics | modelsum.control settings | summary.modelsum settings
Calculating Running Elo Updates6 years ago
The elo.run() function | With two variable Elos | With a fixed-Elo opponent | Regress Elos back to the mean | Group matches | elo.run.multiteam() | Helper functions | Making Predictions | Advanced: custom probability and updates | Final Thoughts
Introduction to Elo Rankings and the 'elo' Package6 years ago
Introduction to Elo Rankings | The elo Package | Naming Schema | Basic Functions | Formula Interface | Final Thoughts
The write2 function6 years ago
Introduction | A note on piping | Examples Using arsenal Objects | tableby | modelsum | freqlist | comparedf | Examples Using Other Objects | knitr::kable() | xtable::xtable() | pander::pander_return() | Output Multiple Tables to One Document | Output Other Objects Monospaced (as if in a terminal) | Add a YAML Header to the Output | Add a Code Chunk to the Output | FAQs | How do I suppress the note about my document getting rendered? | How do I look at the temporary .Rmd file? | How do I prevent my document from being rendered? | How do I output headers, raw HTML/LaTeX, paragraphs, etc.? | How do I tweak the default format from write2word(), write2html(), or write2pdf()? | How do I output to a file format other than word, HTML, and PDF? | How do I avoid prefixes on my table captions in PDF? | How do I output multiple tables with different titles? | Why is write2() not working in R Markdown/R Studio?
The freqlist function6 years ago
Overview | Sample dataset | The freqlist object | Basic output using summary() | Using a formula with freqlist | Rounding percentage digits or changing variable names for printing | Additional examples | Including combinations with frequencies of zero | Options for NA handling | Frequency counts and percentages subset by factor levels | Show only the "n" most common combinations in each table (head() and sort()) | Change labels on the fly | Using xtable() to format and print freqlist() results | Use freqlist in bookdown | Appendix: Notes regarding table options in R | NAs | Table dimname names (dnn)
The comparedf function6 years ago
Introduction | Basic examples | A larger example | Column name comparison options | Ignoring case | Treating dots and underscores the same (equivalence classes) | Manually specifying columns to match together | Column comparison options | Logical tolerance | Numeric tolerance | Factor tolerance | Character tolerance | Date tolerance | Other data type tolerances | Specifying tolerances for each variable | User-defined tolerance functions | Details | Example 1 | Example 2 | Extract Differences | Appendix | Stucture of the Object
A Few Notes on Labels6 years ago
Introduction | Examples | Set labels in the function call | Modify labels after the fact | Add labels to a data.frame | When labels get long
The paired function6 years ago
Introduction | Simple Example | NAs | Available Function Options | Testing options | paired.control settings | summary.tableby settings