Shapiro: Shapiro-Wilk Normality test for multiple variables.

ShapiroR Documentation

Shapiro-Wilk Normality test for multiple variables.

Description

Computes a Shapiro-Wilk Normality test based on a model produced with aov. It loops over multiple variables, determined by numberOfIndexes.

Usage

Shapiro(data, numberOfIndexes, formula, ...)

Arguments

data

a data frame, columns corresponding to indexes and rows corresponding to samples. Further columns should be included with metadata. This is used in argument Formula.

numberOfIndexes

Integer corresponding to the number of indexes to analyze. This will be take as column numbers by the function.

formula

Metadata group name. This will group samples according to a metadata column and specify the model.

...

Further arguments to be passed to aov.

Value

A data frame with p-values for each variable analyzed. indexColumn indicates variables names.

Examples

shapiro_location<-Shapiro(alpha_diversity_table, 4, "location")




nuriamw/micro4all documentation built on May 2, 2024, 9:18 a.m.