sample_technicalVariance {clippda} | R Documentation

## A generic function for computing the technical variance

### 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

    sample_technicalVariance(Data, ...)

### 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

    #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)

[Package clippda version 1.44.0 Index]