View source: R/multtest.gp.bin.R
multtest.gp.bin | R Documentation |
Performs group comparisons for multiple binary variables using a parametric or an exact test, and corrects p-values. Gives also group proportions and standards errors for each variable.
multtest.gp.bin(tab, fac, test = c("LRT", "Fisher"),
p.method = "fdr", ordered = TRUE, ...)
## S3 method for class 'multtest.gp.bin'
plot(x, signif = FALSE, alpha = 0.05,
vars = NULL, xlab = "Group", ylab = "Mean (+/- SE) proportion",
titles = NULL, groups = NULL, ...)
tab |
data frame containing response variables. |
fac |
factor defining groups to compare. |
test |
type of test to use: likelihood ratio test based on binomial GLM ( |
p.method |
method for p-values correction. See help of |
ordered |
logical indicating if variables should be ordered based on p-values. |
x |
object returned from |
signif |
logical indicating if only variables with significant P-value should be plotted. |
alpha |
significance threshold. |
vars |
numeric vector giving variables to plot (rows of |
xlab |
legend of the x axis. |
ylab |
legend of the y axis |
titles |
titles of the graphs (name of the variables by default). |
groups |
names of the bars (levels of |
... |
additional arguments to testing functions in |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
multtest.gp
, Anova
, fisher.test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.