compareBy | R Documentation |
Generate a canonical description table to describe multiple variables for a classification criterium Includes: - Mean and sd for each group - Report of normality of each grupo - Test of differences, adapted to normality of each group - Effect size of differences: d for two groups, f for three or more
compareBy(
vars,
g,
varnames = colnames(vars),
use.2.bm = FALSE,
use.3.eta2 = FALSE,
test.type = "variable",
show.n = TRUE
)
vars |
a data.frame with variables |
g |
vector with groups to divide the information into |
test.type |
"variable" for contingent on normality test, "parametric" for t and ANOVA and "nonparametric" for U and Kruskall-Wallis |
show.n |
show the size of each groups |
use.2.bm: |
Use brunner.munzel.test on variables with two groups |
use.3.eta2: |
Use eta squared, instead of <code>f</code>, on comparison of three or more groups |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.