getDiffCase {methInheritSim} | R Documentation |
Simulate the proportion of C/T for each case at a selected site, differentially methylated or not.
getDiffCase(ctrlMean, ctrlVar, selectedAsDM, nbCase, sDiff, nbDiffCase)
ctrlMean |
a |
ctrlVar |
a |
selectedAsDM |
a |
nbCase |
a |
sDiff |
a non-negative |
nbDiffCase |
an |
a vector
containing 3 + nbCase
entries of type
double
:
The mean proportion of C/T of the differentially methylated cases
The number of cases simulated using shifted distribution
The number of cases simulated using the control distribution
The proportion of C/T for each case
Pascal Belleau, Astrid Deschenes
## Fix seed to obtain replicable results set.seed(2010) ## Get the proportion of C/T for each case at a specific site. methInheritSim:::getDiffCase(ctrlMean = 0.9814562, ctrlVar = 0.0003607153, selectedAsDM = 0, nbCase=6, sDiff = 0.8, nbDiffCase = round(6 * 0.9))