perform_pairwise_t_test: Perform pairwise t-tests

perform_pairwise_t_testR Documentation

Perform pairwise t-tests

Description

Performs pairwise t-tests between all study groups. Use is_paired for pairwise paired t-tests. NOTE! Does not use formula interface

Usage

perform_pairwise_t_test(
  object,
  group = group_col(object),
  is_paired = FALSE,
  id = NULL,
  all_features = FALSE,
  ...
)

Arguments

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

Details

P-values of each comparison are corrected separately from each other.

Value

data frame with the results

See Also

perform_t_test, perform_paired_t_test, t.test

Examples

# 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")


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