perform_oneway_anova: Perform ANOVA

perform_oneway_anovaR Documentation

Perform ANOVA

Description

Performs ANOVA with Welch's correction as default, to deal with heterogeneity of variances. Can also perform classic ANOVA with assumption of equal variances. Uses base R function oneway.test.

Usage

perform_oneway_anova(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?

...

other parameters to oneway.test

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 means in study groups, use "Feature ~ Group".

Value

data frame with the results

See Also

oneway.test

Examples

perform_oneway_anova(example_set, formula_char = "Feature ~ Group")


antonvsdata/notame documentation built on Sept. 14, 2024, 11:09 p.m.