Package: powerMediation 0.3.4

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.

Authors:Weiliang Qiu <[email protected]>

powerMediation_0.3.4.tar.gz
powerMediation_0.3.4.zip(r-4.5)powerMediation_0.3.4.zip(r-4.4)powerMediation_0.3.4.zip(r-4.3)
powerMediation_0.3.4.tgz(r-4.4-any)powerMediation_0.3.4.tgz(r-4.3-any)
powerMediation_0.3.4.tar.gz(r-4.5-noble)powerMediation_0.3.4.tar.gz(r-4.4-noble)
powerMediation_0.3.4.tgz(r-4.4-emscripten)powerMediation_0.3.4.tgz(r-4.3-emscripten)
powerMediation.pdf |powerMediation.html
powerMediation/json (API)
NEWS

# Install 'powerMediation' in R:
install.packages('powerMediation', repos = c('https://weiliang.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.96 score 3 stars 2 packages 63 scripts 604 downloads 8 mentions 33 exports 0 dependencies

Last updated 4 years agofrom:eb7aba4e11. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-winOKOct 31 2024
R-4.5-linuxOKOct 31 2024
R-4.4-winOKOct 31 2024
R-4.4-macOKOct 31 2024
R-4.3-winOKOct 31 2024
R-4.3-macOKOct 31 2024

Exports:minEffect.SLRminEffect.VSMcminEffect.VSMc.coxminEffect.VSMc.logisticminEffect.VSMc.poissonpower.SLRpower.SLR.rhopowerInteract2by2powerLogisticBinpowerLogisticConpowerLongpowerLong.multiTimepowerLongFullpowerMediation.SobelpowerMediation.VSMcpowerMediation.VSMc.coxpowerMediation.VSMc.logisticpowerMediation.VSMc.poissonpowerPoissonsizePoissonss.SLRss.SLR.rhoSSizeLogisticBinSSizeLogisticConssLongssLong.multiTimessLongFullssMediation.SobelssMediation.VSMcssMediation.VSMc.coxssMediation.VSMc.logisticssMediation.VSMc.poissontestMediation.Sobel

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Minimum detectable slopeminEffect.SLR
Minimum detectable slope for mediator in linear regression based on Vittinghoff, Sen and McCulloch's (2009) methodminEffect.VSMc
Minimum detectable slope for mediator in cox regression based on Vittinghoff, Sen and McCulloch's (2009) methodminEffect.VSMc.cox
Minimum detectable slope for mediator in logistic regression based on Vittinghoff, Sen and McCulloch's (2009) methodminEffect.VSMc.logistic
Minimum detectable slope for mediator in poisson regression based on Vittinghoff, Sen and McCulloch's (2009) methodminEffect.VSMc.poisson
Power for testing slope for simple linear regressionpower.SLR
Power for testing slope for simple linear regressionpower.SLR.rho
Power Calculation for Interaction Effect in 2x2 Two-Way ANOVA Given Effect SizespowerInteract2by2
Calculating power for simple logistic regression with binary predictorpowerLogisticBin
Calculating power for simple logistic regression with continuous predictorpowerLogisticCon
Power calculation for longitudinal study with 2 time pointpowerLong
Power calculation for testing if mean changes for 2 groups are the same or not for longitudinal study with more than 2 time pointspowerLong.multiTime
Power calculation for longitudinal study with 2 time pointpowerLongFull
Power for testing mediation effect (Sobel's test)powerMediation.Sobel
Power for testing mediation effect in linear regression based on Vittinghoff, Sen and McCulloch's (2009) methodpowerMediation.VSMc
Power for testing mediation effect in cox regression based on Vittinghoff, Sen and McCulloch's (2009) methodpowerMediation.VSMc.cox
Power for testing mediation effect in logistic regression based on Vittinghoff, Sen and McCulloch's (2009) methodpowerMediation.VSMc.logistic
Power for testing mediation effect in poisson regression based on Vittinghoff, Sen and McCulloch's (2009) methodpowerMediation.VSMc.poisson
Power calculation for simple Poisson regressionpowerPoisson
Sample size calculation for simple Poisson regressionsizePoisson
Sample size for testing slope for simple linear regressionss.SLR
Sample size for testing slope for simple linear regression based on R2ss.SLR.rho
Calculating sample size for simple logistic regression with binary predictorSSizeLogisticBin
Calculating sample size for simple logistic regression with continuous predictorSSizeLogisticCon
Sample size calculation for longitudinal study with 2 time pointssLong
Sample size calculation for testing if mean changes for 2 groups are the same or not for longitudinal study with more than 2 time pointsssLong.multiTime
Sample size calculation for longitudinal study with 2 time pointssLongFull
Sample size for testing mediation effectd (Sobel's test)ssMediation.Sobel
Sample size for testing mediation effect in linear regression based on Vittinghoff, Sen and McCulloch's (2009) methodssMediation.VSMc
Sample size for testing mediation effect in cox regression based on Vittinghoff, Sen and McCulloch's (2009) methodssMediation.VSMc.cox
Sample size for testing mediation effect in logistic regression based on Vittinghoff, Sen and McCulloch's (2009) methodssMediation.VSMc.logistic
Sample size for testing mediation effect in poisson regression based on Vittinghoff, Sen and McCulloch's (2009) methodssMediation.VSMc.poisson
P-value and confidence interval for testing mediation effect (Sobel's test)testMediation.Sobel