View source: R/fsmry2.by.grp.R
fsmry2.by.grp | R Documentation |
Summarize a categorical variable by a categorical variable
fsmry2.by.grp(y, grp, cmp.method = c("fisher", "chisq"))
y |
A categorical variable. |
grp |
A categorical group variable. |
cmp.method |
Text string for comparisons method, "fisher" or, "chisq" |
An |
indicator of whether to log transform y |
Summary of difference in distribution of y by grp using Fisher's exact test or chi-squared test.
fsmry2.by.grp(y = factor(rep(c("Female", "Male", "Female", "Male"), c(2,8,6,4))), grp = factor(rep(c("grp1", "grp2"), each=10)), cmp.method = "fisher")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.