pwrEWAS_powerPlot {pwrEWAS}R Documentation

Plot function to create a power plot

Description

pwrEWAS_powerPlot create a figure with power (with 95-percentile interval (2.5

Usage

pwrEWAS_powerPlot(data, sd = FALSE)

Arguments

data

"powerArray" attribute within the pwrEWAS object create by pwrEWAS.

sd

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

Value

pwrEWAS_powerPlot return a figure displaying power as a function sample size for 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_powerPlot(data = outDelta$powerArray, 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_powerPlot(data = outSD$powerArray, sd = TRUE)

[Package pwrEWAS version 1.6.0 Index]