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
