Description Usage Arguments Value Author(s) References Examples
Create descriptive table by group Current version works in the html setting. We are working on extend it to the word document
1 2 | desc_table(varlist, data, groupvar = NULL, total = TRUE,
group.comp = TRUE)
|
varlist |
One-dimensional predictor |
data |
Dataset to be analyzed. |
groupvar |
Group variable name. If not specified, descriptive stats for all subjects are reported. |
total |
(default=TRUE). Valid only if groupvar is not NULL. total=FALSE if a user does not want to print stats for all subjects. |
group.comp |
(default=TRUE) Add p-values of group comparison. F test and Chi-square test are used for continuouis and categorail variables, respectively. |
squareroot of matrix
Seonjoo Lee, sl3670@cumc.columbia.edu
TBA
1 2 3 4 5 6 | data(mtcars)
mtcars = mtcars %>% mutate(cyl=factor(cyl),vs=factor(vs), am=factor(am))
varlist=c('mpg','disp','hp','drat','wt','gear','carb','vs')
desc_table(varlist, data=mtcars,groupvar=NULL)
desc_table(varlist, data=mtcars,groupvar="cyl")
desc_table(varlist, data=mtcars,groupvar="cyl",total=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.