inst/unitTests/test_pwrEWAS.R

test_pwrEWAS <- function(){
    checkEqualsNumeric(pwrEWAS(minTotSampleSize = 10, 
        maxTotSampleSize = 10, 
        SampleSizeSteps = 1, 
        NcntPer = 0.5, 
        targetDelta = 0.8, 
        J = 10000,
        targetDmCpGs = 100, 
        tissueType = "Adult (PBMC)", 
        detectionLimit = 0.01, 
        DMmethod = "limma", 
        FDRcritVal = 0.05, 
        core = 1, 
        sims = 50)$meanPower,
        0.6711375, 
        tolerance = 0.05)
}

Try the pwrEWAS package in your browser

Any scripts or data that you put into this service are public.

pwrEWAS documentation built on Nov. 8, 2020, 11:13 p.m.