perform_pairwise_t_test | R Documentation |
Performs pairwise t-tests between all study groups.
Use is_paired
for pairwise paired t-tests.
NOTE! Does not use formula interface
perform_pairwise_t_test(
object,
group = group_col(object),
is_paired = FALSE,
id = NULL,
all_features = FALSE,
...
)
object |
a MetaboSet object |
group |
character, column name of phenoData giving the groups |
is_paired |
logical, use pairwise paired t-test |
id |
character, name of the subject identification column for paired version |
all_features |
should all features be included in FDR correction? |
... |
other parameters passed to perform_t_test, and eventually to base R t.test |
P-values of each comparison are corrected separately from each other.
data frame with the results
perform_t_test
,
perform_paired_t_test
,
t.test
# Including QCs as a study group for example
t_test_results <- perform_pairwise_t_test(merged_sample, group = "Group")
# Using paired mode (pairs with QC are skipped as there are no common IDs in 'example_set')
t_test_results <- perform_pairwise_t_test(example_set, group = "Time", is_paired = TRUE, id = "Subject_ID")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.