R: Univariate comparison of groups for multiple variables
multtest.gp
R Documentation
Univariate comparison of groups for multiple variables
Description
Performs group comparisons for multiple variables using parametric, permutational or rank tests, and corrects p-values. Gives also group means and standards errors for each variable.
type of test to use: parametric (default), permutational (non parametric) or rank-based (non parametric). See Details.
transform
transformation to apply to response variables before testing (none by default). Only used for parametric and permutational tests.
add
value to add to response variables before a log-transformation.
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.
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 (especially for var.equal in t.test and nperm in perm.anova and perm.t.test) and to barplot in plot.
Details
In case of parametric tests, t-tests or ANOVAs are used depending on the number of groups (2 or more, respectively). In case of permutational tests: permutational t-tests or permutational ANOVAs. In case of rank-based tests: Mann-Whitney-Wilcoxon or Kruskal-Wallis tests.
Author(s)
Maxime Herv<c3><a9> <mx.herve@gmail.com>
See Also
perm.anova, perm.t.test
Examples
data(iris)
mult <- multtest.gp(iris[,1:4],iris$Species)
plot(mult)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(RVAideMemoire)
*** Package RVAideMemoire v 0.9-56 ***
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/RVAideMemoire/multtest.gp.Rd_%03d_medium.png", width=480, height=480)
> ### Name: multtest.gp
> ### Title: Univariate comparison of groups for multiple variables
> ### Aliases: multtest.gp plot.multtest.gp
>
> ### ** Examples
>
> data(iris)
> mult <- multtest.gp(iris[,1:4],iris$Species)
> plot(mult)
>
>
>
>
>
> dev.off()
null device
1
>