multtest.gp.bin: Univariate comparison of groups for multiple binary variables

View source: R/multtest.gp.bin.R

multtest.gp.binR Documentation

Univariate comparison of groups for multiple binary variables

Description

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.

Usage

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, ...)

Arguments

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 ("LRT", default) or Fisher's exact test ("Fisher").

p.method

method for p-values correction. See help of p.adjust.

ordered

logical indicating if variables should be ordered based on p-values.

x

object returned from multtest.gp.bin.

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 x). Default to all, which can lead to errors if too many variables.

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 fac by default).

...

additional arguments to testing functions in multtest.gp.bin (especially for Anova and fisher.test) and to barplot in plot.

Author(s)

Maxime HERVE <maxime.herve@univ-rennes1.fr>

See Also

multtest.gp, Anova, fisher.test


RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.