powerMediation: Power/Sample Size Calculation for Mediation Analysis

Functions to calculate power and sample size for testing (1) mediation effects; (2) the slope in a simple linear regression; (3) odds ratio in a simple logistic regression; (4) mean change for longitudinal study with 2 time points; (5) interaction effect in 2-way ANOVA; and (6) the slope in a simple Poisson regression.

Install the latest version of this package by entering the following in R:
install.packages("powerMediation")
AuthorWeiliang Qiu <stwxq@channing.harvard.edu>
Date of publication2017-02-16 07:13:36
MaintainerWeiliang Qiu <stwxq@channing.harvard.edu>
LicenseGPL (>= 2)
Version0.2.7

View on CRAN

Man pages

minEffect.SLR: Minimum detectable slope

minEffect.VSMc: Minimum detectable slope for mediator in linear regression...

minEffect.VSMc.cox: Minimum detectable slope for mediator in cox regression based...

minEffect.VSMc.logistic: Minimum detectable slope for mediator in logistic regression...

minEffect.VSMc.poisson: Minimum detectable slope for mediator in poisson regression...

powerInteract: Power for detecting interaction effect in 2-way ANOVA

powerLogisticBin: Calculating power for simple logistic regression with binary...

powerLogisticCon: Calculating power for simple logistic regression with...

powerLong: Power calculation for longitudinal study with 2 time point

powerLongFull: Power calculation for longitudinal study with 2 time point

powerLong.multiTime: Power calculation for testing if mean changes for 2 groups...

powerMediation.Sobel: Power for testing mediation effect (Sobel's test)

powerMediation.VSMc: Power for testing mediation effect in linear regression based...

powerMediation.VSMc.cox: Power for testing mediation effect in cox regression based on...

powerMediation.VSMc.logistic: Power for testing mediation effect in logistic regression...

powerMediation.VSMc.poisson: Power for testing mediation effect in poisson regression...

powerPoisson: Power calculation for simple Poisson regression

power.SLR: Power for testing slope for simple linear regression

power.SLR.rho: Power for testing slope for simple linear regression

sizePoisson: Sample size calculation for simple Poisson regression

SSizeLogisticBin: Calculating sample size for simple logistic regression with...

SSizeLogisticCon: Calculating sample size for simple logistic regression with...

ssLong: Sample size calculation for longitudinal study with 2 time...

ssLongFull: Sample size calculation for longitudinal study with 2 time...

ssLong.multiTime: Sample size calculation for testing if mean changes for 2...

ssMediation.Sobel: Sample size for testing mediation effectd (Sobel's test)

ssMediation.VSMc: Sample size for testing mediation effect in linear regression...

ssMediation.VSMc.cox: Sample size for testing mediation effect in cox regression...

ssMediation.VSMc.logistic: Sample size for testing mediation effect in logistic...

ssMediation.VSMc.poisson: Sample size for testing mediation effect in poisson...

ss.SLR: Sample size for testing slope for simple linear regression

ss.SLR.rho: Sample size for testing slope for simple linear regression...

testMediation.Sobel: P-value and confidence interval for testing mediation effect...

Functions

minEffect.SLR Man page
minEffect.VSMc Man page
minEffect.VSMc.cox Man page
minEffect.VSMc.logistic Man page
minEffect.VSMc.poisson Man page
powerInteract Man page
powerLogisticBin Man page
powerLogisticCon Man page
powerLong Man page
powerLongFull Man page
powerLong.multiTime Man page
powerMediation.Sobel Man page
powerMediation.VSMc Man page
powerMediation.VSMc.cox Man page
powerMediation.VSMc.logistic Man page
powerMediation.VSMc.poisson Man page
powerPoisson Man page
power.SLR Man page
power.SLR.rho Man page
sizePoisson Man page
SSizeLogisticBin Man page
SSizeLogisticCon Man page
ssLong Man page
ssLongFull Man page
ssLong.multiTime Man page
ssMediation.Sobel Man page
ssMediation.VSMc Man page
ssMediation.VSMc.cox Man page
ssMediation.VSMc.logistic Man page
ssMediation.VSMc.poisson Man page
ss.SLR Man page
ss.SLR.rho Man page
testMediation.Sobel Man page

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.