levene.test.alpha: Levene's test for multiple variables

levene.test.alphaR Documentation

Levene's test for multiple variables

Description

Test homogeneity of variance across groups, looping across multiple variables (e.g. alpha diversity indexes).

Usage

levene.test.alpha(data, numberOfIndexes, formula, ...)

Arguments

data

a data frame, columns corresponding to variables (e.g. alpha diversity 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 leveneTest.

Value

returns a data frame with results from leveneTest from package car for each variable (determined by numberOfIndexes).Further details can be found in leveneTest

Examples


levene_location <- Levene.test.alpha(alpha_diversity_table, 4, "location")


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