Description Usage Arguments Details Value Examples
r_mediation_natural : function to simulate DNA methylation data for mediation analyzis (based on NaturalGWAS model)
1 2 3 |
meth |
: methylation matrix |
eff.size.x |
: effect size of X on M |
n.x |
: number of causal CpGs associated with X |
n.y |
: number of causal CpGs associated with y |
n.xy |
: number of true mediators |
k |
: number of latent factors (need to be estimated with a pca) |
chr |
: chromosome |
pos |
: chromosome position |
window |
: distance between causal CpGs |
pca |
: a former pca with svd() function, speed the simulation (NULL by default) |
eff.size.x |
: effect size of Y on M |
Adaptation of the "simu_pheno" function of the "naturalgwas" package to simulate mediation data in high dimension
causal.x : set of CpGs associated with the exposure
causal.y : set of CpGs associated with the outcome
causal.xy : set of true mediators
X : simulate phenotype
Y : simulate outcome
1 | # Simulate data :
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.