perform_homoscedasticity_tests: Test homoscedasticity

Description Usage Arguments Details Value See Also Examples

Description

Performs Bartlett's, Levene's and Fligner-Killeen tests for equality of variances CITATION: When using this function, cite the car package, which provides the function for Levene's test. (The other tests are included in base R).

Usage

1
2
perform_homoscedasticity_tests(object, formula_char,
  all_features = FALSE)

Arguments

object

a MetaboSet object

formula_char

character, the formula to be used in the linear model (see Details) Defaults to "Feature ~ group_col(object)

all_features

should all features be included in FDR correction?

Details

The model is fit on combined_data(object). Thus, column names in pData(object) can be specified. To make the formulas flexible, the word "Feature" must be used to signal the role of the features in the formula. "Feature" will be replaced by the actual Feature IDs during model fitting. For example, if testing for equality of variances in study groups, use "Feature ~ Group".

Value

data frame with the results

See Also

bartlett.test, leveneTest, fligner.test

Examples

1
perform_homoscedasticity_tests(example_set, formula_char = "Feature ~ Group")

antonvsdata/amp documentation built on Jan. 8, 2020, 3:15 a.m.