Learn R Programming

RefFreeEWAS (version 2.2)

RefFreeCellMixArrayDevianceBoots: RefFreeCellMixArrayDevianceBoots

Description

Matrix of bootstrapped deviances corresponding to an array of reference-free cell-mixture decompositions

Usage

RefFreeCellMixArrayDevianceBoots(rfArray, Y, R=5, EPSILON=1E-9, bootstrapIterations=5)

Arguments

rfArray

list of RefFreeCellMix objects (e.g. from RefFreeCellMixArray)

Y

Methylation matrix on which x was based

R

Number of bootstrapped vectors to return

EPSILON

Minimum value of variance (zero variances will be reset to this value)

bootstrapIterations

Number of RefFreeCellMix iterations to use in bootstrap

Details

Matrix (multiple vectors) of bootstrapped deviances corresponding to an array of reference-free cell-mixture decompositions, used to determine optimal number of cell types. This function returns one bootstrapped vector. The bootstrapped deviance is based on normal distribution applied to errors of Y after accounting for cell mixture effect, Mu Omega^T. See RefFreeCellMixArray for example.