perform_wilcoxon_signed_rank: Perform Wilcoxon signed rank test

perform_wilcoxon_signed_rankR Documentation

Perform Wilcoxon signed rank test

Description

Performs Wilcoxon signed rank test Uses base R function wilcox.test with paired = TRUE.

Usage

perform_wilcoxon_signed_rank(object, group, id, all_features = FALSE, ...)

Arguments

object

a MetaboSet object

all_features

should all features be included in FDR correction?

...

other parameters to wilcox.test

formula_char

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

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

Value

data frame with the results

See Also

wilcox.test

Examples

perform_wilcoxon_signed_rank(drop_qcs(example_set), group = "Time", id = "Subject_ID")


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