MyNixOS website logo
Description

Power Analysis for Meta-Analysis.

A simple and effective tool for computing and visualizing statistical power for meta-analysis, including power analysis of main effects (Jackson & Turner, 2017)<doi:10.1002/jrsm.1240>, test of homogeneity (Pigott, 2012)<doi:10.1007/978-1-4614-2278-5>, subgroup analysis, and categorical moderator analysis (Hedges & Pigott, 2004)<doi:10.1037/1082-989X.9.4.426>.

metapoweR

CRANstatus Lifecycle:stable

The primary goal of metapower is to compute statistical power for meta-analyses. Currently, metapower has the following functionality:

Computation of statistical power for:

  1. Summary main effects sizes
  2. Test of homogeneity for between-group variance (for Random-effects models).
  3. Test of homogeneity for within-study variance
  4. Subgroup Analyses
  5. Moderator Analysis

metapower can currently handle the following designs and effect sizes:

  1. Standardized mean difference: Cohen’s d
  2. Correlation between two continuous variables: Correlation Coefficient (via Fisher’s r-to-z transformation)
  3. Probability of Success/Failure: Odds Ratio

Installation

You can install the released version of metapower from CRAN with:

install.packages("metapower")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("jasonwgriffin/metapower")

Shiny Application

Check out the simple and easy to use shiny application

Example

library(metapower)
my_power <- mpower(effect_size = .3, study_size = 20, k = 10, i2 = .50, es_type = "d")
print(my_power)
#> 
#>  Power Analysis for Meta-analysis 
#> 
#>  Effect Size Metric:                d 
#>  Expected Effect Size:              0.3 
#>  Expected Study Size:               20 
#>  Expected Number of Studies:        10 
#> 
#>  Estimated Power: Mean Effect Size 
#> 
#>  Fixed-Effects Model                0.5594533 
#>  Random-Effects Model (i2 = 50%):   0.3454424
plot_mpower(my_power)

See Vignette “Using metapower” for more information..

References

All mathematical calculations are derived from Hedges & Pigott (2004), Bornstein, Hedges, Higgins, & Rothstein (2009),Pigott (2012), Jackson & Turner (2017).

Bornstein, M., Hedges, L. V., Higgins, J. P., & Rothstein, H. R. (2009). Introduction to meta-analysis. Hoboken, NJ: Wiley.

Hedges, L. V., & Pigott, T. D. (2004). The power of statistical tests for moderators in meta-analysis. Psychological Methods, 9(4), 426–445. https://doi.org/10.1037/1082-989x.9.4.426

Jackson, D., & Turner, R. (2017). Power analysis for random‐effects meta-analysis. Research Synthesis Methods, 8(3), 290–302. https://doi.org/10.1002/jrsm.1240

Pigott, T. D. (2012). Advances in meta-analysis. NewYork, NY: Springer.

Issues

If you encounter a clear bug, please file a minimal reproducible example on github.

Metadata

Version

0.2.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows