pwrEWAS_deltaDensity {pwrEWAS}R Documentation

Density plot for simulated differences in mean methylation

Description

pwrEWAS_deltaDensity create a density plot of the simulated differences in mean methylation for different effect sizes

Usage

pwrEWAS_deltaDensity(data, detectionLimit = 0.01, sd = FALSE)

Arguments

data

"deltaArray" attribute within the pwrEWAS object create by pwrEWAS

detectionLimit

Detection limit specified in pwrEWAS.

sd

FALSE if targetDelta was specified in pwrEWAS, and TRUE if deltaSD was specified in pwrEWAS.

Value

pwrEWAS_deltaDensity return a figure displaying densities of simulated differences in mean methylation different effect sizes

Examples

outDelta <- pwrEWAS(minTotSampleSize = 10,
    maxTotSampleSize = 20,
    SampleSizeSteps = 10,
    NcntPer = 0.5,
    targetDelta = c(0.2, 0.5),
    J = 1000,
    targetDmCpGs = 10,
    tissueType = "Adult (PBMC)",
    detectionLimit = 0.01,
    DMmethod = "limma",
    FDRcritVal = 0.05,
    core = 2,
    sims = 30)
pwrEWAS_deltaDensity(data = outDelta$deltaArray, detectionLimit = 0.01, sd = FALSE)
outSD <- pwrEWAS(minTotSampleSize = 10,
    maxTotSampleSize = 20,
    SampleSizeSteps = 10,
    NcntPer = 0.5,
    deltaSD = c(0.02, 0.03),
    J = 1000,
    targetDmCpGs = 10,
    tissueType = "Adult (PBMC)",
    detectionLimit = 0.01,
    DMmethod = "limma",
    FDRcritVal = 0.05,
    core = 2,
    sims = 30)
pwrEWAS_deltaDensity(data = outSD$deltaArray, detectionLimit = 0.01, sd = TRUE)

[Package pwrEWAS version 1.4.0 Index]