Learn R Programming

⚠️There's a newer version (0.3.4) of this package.Take me there.

powerMediation (version 0.0.8)

Power/Sample size calculation for mediation analysis

Description

The package contains functions for calculating power, sample size, and minimal detectable mediation effect for testing mediation effect in linear, logistic, poisson, or cox regression. The package also contains functions for calculating power, sample size, and minimal detectable slope for testing the slope in a simple linear regression (only one predictor).

Copy Link

Version

Install

install.packages('powerMediation')

Monthly Downloads

451

Version

0.0.8

License

GPL (>= 2)

Maintainer

Weiliang Qiu

Last Published

March 12th, 2012

Functions in powerMediation (0.0.8)

minEffect.VSMc.logistic

Minimum detectable slope for mediator in logistic regression based on Vittinghoff, Sen and McCulloch's (2009) method
minEffect.VSMc

Minimum detectable slope for mediator in linear regression based on Vittinghoff, Sen and McCulloch's (2009) method
minEffect.VSMc.poisson

Minimum detectable slope for mediator in poisson regression based on Vittinghoff, Sen and McCulloch's (2009) method
powerMediation.VSMc.poisson

Power for testing mediation effect in poisson regression based on Vittinghoff, Sen and McCulloch's (2009) method
powerMediation.VSMc.cox

Power for testing mediation effect in cox regression based on Vittinghoff, Sen and McCulloch's (2009) method
ssMediation.VSMc.logistic

Sample size for testing mediation effect in logistic regression based on Vittinghoff, Sen and McCulloch's (2009) method
powerMediation.Sobel

Power for testing mediation effect (Sobel's test)
ss.SLR.rho

Sample size for testing slope for simple linear regression based on R2
testMediation.Sobel

P-value and confidence interval for testing mediation effect (Sobel's test)
minEffect.VSMc.cox

Minimum detectable slope for mediator in cox regression based on Vittinghoff, Sen and McCulloch's (2009) method
ss.SLR

Sample size for testing slope for simple linear regression
minEffect.SLR

Minimum detectable slope
ssMediation.VSMc.poisson

Sample size for testing mediation effect in poisson regression based on Vittinghoff, Sen and McCulloch's (2009) method
powerMediation.VSMc

Power for testing mediation effect in linear regression based on Vittinghoff, Sen and McCulloch's (2009) method
power.SLR

Power for testing slope for simple linear regression
ssMediation.VSMc

Sample size for testing mediation effect in linear regression based on Vittinghoff, Sen and McCulloch's (2009) method
ssMediation.VSMc.cox

Sample size for testing mediation effect in cox regression based on Vittinghoff, Sen and McCulloch's (2009) method
power.SLR.rho

Power for testing slope for simple linear regression
ssMediation.Sobel

Sample size for testing mediation effectd (Sobel's test)
powerMediation.VSMc.logistic

Power for testing mediation effect in logistic regression based on Vittinghoff, Sen and McCulloch's (2009) method