perform_pairwise_non_parametric | R Documentation |
Performs pairwise non-parametric tests between all study groups.
Use is_paired = FALSE
for Mann-Whitney u-tests
Use is_paired = TRUE
for Wilcoxon signed rank tests.
NOTE! Does not use formula interface
perform_pairwise_non_parametric(
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 tests |
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 test functions |
P-values of each comparison are corrected separately from each other.
data frame with the results
perform_mann_whitney
,
perform_wilcoxon_signed_rank
,
wilcox.test
# Including QCs as a study group for example
mann_whitney_results <- perform_pairwise_non_parametric(merged_sample, group = "Group")
# Using paired mode (pairs with QC are skipped as there are no common IDs in 'example_set')
wilcoxon_signed_results <- perform_pairwise_non_parametric(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.