perform_auc: Area under curve

Description Usage Arguments Value See Also Examples

View source: R/stats.R

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

1
2
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

1
2
3
4
# 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/amp documentation built on Jan. 8, 2020, 3:15 a.m.