fsmry.by.grp | R Documentation |
Summarize a continuous variable by a categorical variable
fsmry.by.grp(y, grp, log.tr = F, method = "Tukey", method.padj = NULL, paired = F, IQR = T)
y |
A continuous variable. |
grp |
A categorical group variable. |
log.tr |
An indicator of whether to log transform y |
method |
Text string for multiple comparisons method if there are more than 2 categories, such as "Tukey", "Dunnet", or specifying the contrast |
method.padj |
Text string for specifying method for multiple adjustment of p-values, e.g., "bonferroni", "fdr", etc. |
paired |
An indicator of whether paired test should be used |
IQR |
An indicator of whether to summarize y using IQR (default) or range. |
Summary of difference in y by grp using parametric and non-parametric methods.
fsmry.by.grp(y=c(rnorm(10), rnorm(10, mean=0.5)), grp=factor(rep(c("grp1", "grp2"), each=10)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.