Description Usage Arguments Details Value See Also Examples
Performs t-tests, the R default is Welch's t-test (unequal variances), use var.equal = TRUE for Student's t-test
1 | perform_t_test(object, formula_char, all_features = FALSE, ...)
|
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? |
... |
additional parameters to t.test |
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".
data frame with the results
1 | t_test_results <- perform_t_test(drop_qcs(merged_sample), formula_char = "Feature ~ Group")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.