posteriorProbability {crlmm} | R Documentation |
Calculate the posterior probability for integer copy numbers using the bivariate normal prediction regions.
posteriorProbability(object, predictRegion, copyNumber = 0:4, w)
object |
A |
predictRegion |
A list containing the bivariate normal prediction region for each of the possible genotypes. |
copyNumber |
Integer vector. |
w |
numeric vector of prior probabilities for each of the copy
number states. Must be the same length as |
This is currently under development.
An array (features x samples x copy number)
This is under development. Use at your own risk.
R. Scharpf
data(cnSetExample) pr <- predictionRegion(cnSetExample, copyNumber=0:4) pp <- posteriorProbability(cnSetExample, predictRegion=pr) dim(pp) ## multiple batches data(cnSetExample2) pr <- predictionRegion(cnSetExample2, copyNumber=0:4) pp <- posteriorProbability(cnSetExample2, predictRegion=pr)