simulatingData: Generate Simulated Data Set

Description Usage Arguments Value Examples

View source: R/simulatingData.R

Description

Generate Simulated Data Set, which can be used to compare type 1 error rate and power for different methods

Usage

1
simulatingData(seed, N, m = 1000, missing.prop, b4.value)

Arguments

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

Value

Return the simulated data set.

Examples

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)

ChongWu-Biostat/MethyImpute documentation built on May 6, 2019, 11:18 a.m.