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")`

Author | Weiliang Qiu <stwxq@channing.harvard.edu> |

Date of publication | 2017-02-16 07:13:36 |

Maintainer | Weiliang Qiu <stwxq@channing.harvard.edu> |

License | GPL (>= 2) |

Version | 0.2.7 |

**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...

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 |

NAMESPACE

NEWS

R

R/powerLogisticsReg.R
R/powerLongitudinal.R
R/power_interaction.R
R/power_VSMc_logistic.R
R/power_VSMc_linear.R
R/powerMediation.R
R/power_VSMc_cox.R
R/power_VSMc_poisson.R
R/functions_poisson.R
MD5

DESCRIPTION

man

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

Questions? Problems? Suggestions? Tweet to @rdrrHQ 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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.