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 multtest.gp.bin
plot(x, signif = FALSE, alpha = 0.05,
vars = NULL, xlab = "Group", ylab = "Mean (+/- SE) proportion",
titles = NULL, groups = NULL, ...)
data frame containing response variables.
factor defining groups to compare.
type of test to use: likelihood ratio test based on binomial GLM ("LRT"
, default) or Fisher's exact test ("Fisher"
).
method for p-values correction. See help of p.adjust
.
logical indicating if variables should be ordered based on p-values.
object returned from multtest.gp.bin
.
logical indicating if only variables with significant P-value should be plotted.
significance threshold.
numeric vector giving variables to plot (rows of x
). Default to all, which can lead to errors if too many variables.
legend of the x axis.
legend of the y axis
titles of the graphs (name of the variables by default).
names of the bars (levels of fac
by default).
additional arguments to testing functions in multtest.gp.bin
(especially for Anova
and fisher.test
) and to barplot
in plot
.
Maxime HERVE <maxime.herve@univ-rennes1.fr>
multtest.gp
, Anova
, fisher.test