Description Usage Arguments Value Author(s) Examples
View source: R/methylInheritanceSimInternalMethods.R
Simulate the proportion of C/T for each case at a selected site, differentially methylated or not.
1 | 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
1 2 3 4 5 6 7 | ## 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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.