pcacor: Use Principal component analysis(PCA) to correct the unknown...

Description Usage Arguments Details Value See Also Examples

View source: R/batch.R

Description

Use Principal component analysis(PCA) to correct the unknown batch effects

Usage

1
pcacor(data, lv)

Arguments

data

data as mzrt profile

lv

factor vector for the group infomation

Details

Use Principal component analysis(PCA) to correct the unknown batch effects

Value

list object with various components such raw data, corrected data, signal part, random errors part, batch part, p-values, q-values.

See Also

isvacor,svacor, limmafit,famtcor

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(faahKO)
cdfpath <- system.file('cdf', package = 'faahKO')
cdffiles <- list.files(cdfpath, recursive = TRUE, full.names = TRUE)
list <- getmr(cdfpath, pmethod = ' ')
li <- pcacor(list$data,list$group$class)

## End(Not run)

yufree/xsetplus documentation built on Nov. 11, 2019, 4:22 p.m.