Package: WebPower 0.9.7

WebPower: Basic and Advanced Statistical Power Analysis

This is a collection of tools for conducting both basic and advanced statistical power analysis including correlation, proportion, t-test, one-way ANOVA, two-way ANOVA, linear regression, logistic regression, Poisson regression, mediation analysis, longitudinal data analysis, structural equation modeling and multilevel modeling. It also serves as the engine for conducting power analysis online at <https://webpower.psychstat.org>.

Authors:Zhiyong Zhang [aut, cre], Yujiao Mai [aut], Miao Yang [ctb], Ziqian Xu [ctb], Conor McNamara [ctb]

WebPower_0.9.7.tar.gz
WebPower_0.9.7.zip(r-4.5)WebPower_0.9.7.zip(r-4.4)WebPower_0.9.7.zip(r-4.3)
WebPower_0.9.7.tgz(r-4.4-any)WebPower_0.9.7.tgz(r-4.3-any)
WebPower_0.9.7.tar.gz(r-4.5-noble)WebPower_0.9.7.tar.gz(r-4.4-noble)
WebPower_0.9.7.tgz(r-4.4-emscripten)WebPower_0.9.7.tgz(r-4.3-emscripten)
WebPower.pdf |WebPower.html
WebPower/json (API)

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

Peer review:

Bug tracker:https://github.com/johnnyzhz/webpower/issues

Datasets:
  • CRT2 - Example Data For CRT With 2 Arms
  • CRT3 - Example Data For CRT With 3 Arms
  • MRT2 - Example Data For MRT With 2 Arms
  • MRT3 - Example Data For MRT With 3 Arms

On CRAN:

43 exports 7 stars 3.43 score 32 dependencies 17 mentions 117 scripts 1.0k downloads

Last updated 7 days agofrom:4a3589680c. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 10 2024
R-4.5-winOKSep 10 2024
R-4.5-linuxOKSep 10 2024
R-4.4-winOKSep 10 2024
R-4.4-macOKSep 10 2024
R-4.3-winOKSep 10 2024
R-4.3-macOKSep 10 2024

Exports:estCRT2armestCRT3armestMRT2armestMRT3armnunirootsem.effect.sizewp.anovawp.anova.binarywp.anova.countwp.blcsmwp.correlationwp.crt2armwp.crt3armwp.effect.CRT2armwp.effect.CRT3armwp.effect.MRT2armwp.effect.MRT3armwp.kanovawp.lcsmwp.logisticwp.mc.chisq.diffwp.mc.sem.basicwp.mc.sem.bootwp.mc.sem.power.curvewp.mc.twp.mediationwp.mmrmwp.mmrm.ar1wp.modmed.m14wp.modmed.m15wp.modmed.m58wp.modmed.m7wp.modmed.m8wp.mrt2armwp.mrt3armwp.poissonwp.popParwp.propwp.regressionwp.rmanovawp.sem.chisqwp.sem.rmseawp.t

Dependencies:bootclidplyrfansigenericsgluelatticelavaanlifecyclelme4magrittrMASSMatrixminqamnormtnlmenloptrnumDerivpbivnormPearsonDSpillarpkgconfigquadprogR6RcppRcppEigenrlangtibbletidyselectutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Basic and Advanced Statistical Power AnalysisWebPower-package WebPower
Example Data For CRT With 2 ArmsCRT2
Example Data For CRT With 3 ArmsCRT3
Estimate multilevel effect size from dataestCRT2arm estCRT3arm estMRT2arm estMRT3arm
Example Data For MRT With 2 ArmsMRT2
Example Data For MRT With 3 ArmsMRT3
Solve A Single Equationnuniroot
Plot the power curve for Latent Change Score Modelsplot.lcs.power
To plot Statistical Power Curveplot.webpower
To Print Statistical Power Analysis Resultsprint.webpower
Calculate the Effect Size for SEMsem.effect.size
Summary Statistical Power Analysis Resultssummary.power
Statistical Power Analysis for One-way ANOVAwp.anova
Statistical Power Analysis for One-way ANOVA with Binary Datawp.anova.binary
Statistical Power Analysis for One-way ANOVA with Count Datawp.anova.count
Statistical Power Curve for Bivariate Latent Change Score Models based on Monte Carlo Simulationwp.blcsm
Statistical Power Analysis for Correlationwp.correlation
Statistical Power Analysis for Cluster Randomized Trials with 2 Armswp.crt2arm
Statistical Power Analysis for Cluster Randomized Trials with 3 Armswp.crt3arm
Effect size calculatator based on raw data for Cluster Randomized Trials with 2 Armswp.effect.CRT2arm
Effect size calculatator based on raw data for Cluster Randomized Trials with 3 Armswp.effect.CRT3arm
Effect size calculatator based on raw data for Multisite Randomized Trials with 2 Armswp.effect.MRT2arm
Effect size calculatator based on raw data for Multisite Randomized Trials with 3 Armswp.effect.MRT3arm
Power analysis for two-way, three-way and k-way ANOVAwp.kanova
Statistical Power Curve for Univariate Latent Change Score Models based on Monte Carlo Simulationwp.lcsm
Statistical Power Analysis for Logistic Regressionwp.logistic
Statistical Power Analysis for SEM Based on Chi-square Difference Testwp.mc.chisq.diff
Statistical Power Analysis for Structural Equation Modeling / Mediation based on Monte Carlo Simulationwp.mc.sem.basic
Statistical Power Analysis for Structural Equation Modeling / Mediation based on Monte Carlo Simulation: bootstrap methodwp.mc.sem.boot
Statistical Power Curve for Structural Equation Modeling / Mediation based on Monte Carlo Simulationwp.mc.sem.power.curve
Power analysis for t-test based on Monte Carlo simulationwp.mc.t
Statistical Power Analysis for Simple Mediationwp.mediation
Power analysis for longitudinal data analysiswp.mmrm wp.mmrm.ar1
model14wp.modmed.m14
model15wp.modmed.m15
model58wp.modmed.m58
model7wp.modmed.m7
model8wp.modmed.m8
Statistical Power Analysis for Multisite Randomized Trials with 2 Armswp.mrt2arm
Statistical Power Analysis for Multisite Randomized Trials with 3 Armswp.mrt3arm
Statistical Power Analysis for Poisson Regressionwp.poisson
Extract Population Value Tablewp.popPar
Statistical Power Analysis for Tests of Proportionswp.prop
Statistical Power Analysis for Linear Regressionwp.regression
Statistical Power Analysis for Repeated Measures ANOVAwp.rmanova
Statistical Power Analysis for Structural Equation Modeling based on Chi-Squared Testwp.sem.chisq
Statistical Power Analysis for Structural Equation Modeling based on RMSEAwp.sem.rmsea
Statistical Power Analysis for t-Testswp.t