Description Usage Arguments Value Author(s)
View source: R/check_normality.R
This function tests for normality of the data across groups (island-habitat combinations). If performs multiple Shapiro-Wilk's normality tests. P-values are adjusted to account for multiple testing. blabla
1 | check_normality(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 list with one element per dependent variable. Each element is a data frame with Shapiro's W statistic, its P-value and adjusted P-value for each group (island-habitat combination). 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.