perform_auc: Area under curve

View source: R/stats.R

perform_aucR Documentation

Area under curve

Description

Compute area under curve (AUC) for each subject and feature. Creates a pseudo MetaboSet object, where the "samples" are subjects (or subject/group combinations in case the same subjects are submitted to different treatments) and the "abundances" are AUCs. This object can then be used to compute results of e.g. t-tests of AUCs between groups.

Usage

perform_auc(
  object,
  time = time_col(object),
  subject = subject_col(object),
  group = group_col(object)
)

Arguments

object

a MetaboSet object

time, subject, group

column names of pData(object), holding time, subject and group labels

Value

a pseudo MetaboSet object with the AUCs

See Also

auc

Examples

# Drop QC samples before computing AUCs
aucs <- perform_auc(drop_qcs(example_set))
# t-test with the AUCs
t_test_results <- perform_t_test(aucs, formula_char = "Feature ~ Group")


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