batch_shift: Batch shifting

View source: R/mt_extra.R

batch_shiftR Documentation

Batch shifting

Description

Remove batch effect withing each block.

Usage

batch_shift(x, y, method = "mean", overall_average = TRUE)

Arguments

x

a data matrix.

y

a categorical data for batch/block information.

method

method for shifting.

overall_average

a logical value to indicate whether or not an overall average will be added after shifting.

Value

a shifted data matrix.

References

Silvia Wagner, et.al, Tools in Metabonomics: An Integrated Validation Approach for LC-MS Metabolic Profiling of Mercapturic Acids in Human Urine Anal. Chem., 2007, 79 (7), pp 2918-2926, DOI: 10.1021/ac062153w


wanchanglin/mtExtra documentation built on Aug. 2, 2024, 5:47 p.m.