Description Usage Arguments Value Examples
View source: R/simulatingData.R
Generate Simulated Data Set, which can be used to compare type 1 error rate and power for different methods
1 | simulatingData(seed, N, m = 1000, missing.prop, b4.value)
|
seed |
random seed |
N |
The number of subjects |
m |
The number of CpG sites, the default is 1,000 |
missing.prop |
The missing rate |
b4.value |
The effect sieze |
Return the simulated data set.
1 2 3 4 5 6 7 8 9 | ## Set the initial conditions
N <- 500 ## Total sample size (subjects)
m <- 1000 ## Total CpG sites
missing.prop = 0.3 ## missing rate
impute.times = 10 ## The number of imputations
b4.value = 0.02 ## The effect size
seed = 1
data = simulatingData(seed,N,m,missing.prop, b4.value)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.