Description Usage Arguments Value Author(s)
View source: R/check_multinorm.R
This function tests for multivariate normality of the data across groups (island-habitat combinations). If performs multiple Shapiro-Wilk's multivariate normality tests. P-values are adjusted to account for multiple testing.
1 | check_multinorm(specdata, vars, plotit = T, method = "bonferroni")
|
specdata |
A data frame containing at least columns for the dependent variables, as well as a column "island" and a column "habitat". |
vars |
A character or integer vector. The names, or indices, of the dependent variables in |
plotit |
Logical. Whether to plot adjusted P-values. |
method |
A character, the method used for P-value correction. See |
A data frame with each group, its multivariate normality W statistic, P-value and adjusted P-value. If plotit = T
, also returns a bar plot of the adjusted P-values with a dashed line at 0.05.
Raphael Scherrer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.