sample_technicalVariance: A generic function for computing the technical variance

Description Usage Arguments Value Author(s) Examples

Description

This generic function computes the within-sample (technical) variance. It fits a simple regression model for repeated measures using the mixedModel2 function in the statmod package. The technical variance is the block component of the varcomp output.

Usage

1

Arguments

Data

An object of aclinicalProteomicsData class.

...

Some methods for this generic function may take additional, optional arguments. At present none do.

Value

It returns a vector of the within-sample variances, one for each peak.

Author(s)

Stephen Nyangoma

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#arrange the data in a form that can be averaged by limma function dupcor
# use the function called limmaData
data(liverdata)

data(liver_pheno)

OBJECT=new("aclinicalProteomicsData")

OBJECT@rawSELDIdata=as.matrix(liverdata)
OBJECT@covariates=c("tumor" , "sex")
OBJECT@phenotypicData=as.matrix(liver_pheno)
OBJECT@variableClass=c('numeric','factor','factor')
OBJECT@no.peaks=53

sample_technicalVariance(OBJECT)

clippda documentation built on Nov. 8, 2020, 8:13 p.m.