Description Usage Arguments Value
Generate html table of descritive statistics for data
1 2 3 |
dataframe |
Data to be used |
num |
A vector of numeric variable names |
char |
A vector of categorical variable names |
grp |
"None" or Group names, limited to one name |
title |
Title of the table |
label.option |
Default is |
mean.option |
Default is |
option |
Default is |
digit |
Round the numeric statistics except for p-value. P-value always had 2 decimals. |
num.test |
A character string specifying the test method for numeric variable among groups, must be one of "None", "ANOVA", "Wilcoxon/Kruskal". "Wilcoxon/Kruskal" means if the group variable has two groups, then use Wilcoxon sum rank test, if has more than two groups, use Kruskal-Wallis test. |
char.test |
A character string specifying the test method for categorical variable among groups, must be one of "None", "Chi", "Fisher". |
Desciptive tables for selected variables. Median (min-max) for numeric variable; N(%) for characteristic variables. ANOVA for numeric variables with normality assumption; Wilcoxon test for non-parametric variable and two groups; Kruiskal test for more than two groups (excluding missing group level); Chi-square test and Fisher's exact test for categorical variables (excluding missing levels, both variable and group)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.