Package: InteractionPoweR 0.2.4

InteractionPoweR: Power Analyses for Interaction Effects in Cross-Sectional Regressions
Power analysis for regression models which test the interaction of two or three independent variables on a single dependent variable. Includes options for correlated interacting variables and specifying variable reliability. Two-way interactions can include continuous, binary, or ordinal variables. Power analyses can be done either analytically or via simulation. Includes tools for simulating single data sets and visualizing power analysis results. The primary functions are power_interaction_r2() and power_interaction() for two-way interactions, and power_interaction_3way_r2() for three-way interactions. The function run_pos_power_search() provides a stability analysis for two-way interactions. Please cite as: Baranger DAA, Finsaas MC, Goldstein BL, Vize CE, Lynam DR, Olino TM (2023). "Tutorial: Power analyses for interaction effects in cross-sectional regressions." <doi:10.1177/25152459231187531>. If you use the stability analyses, please cite: Castillo A, Miller JD, Vize C, Baranger DAA, Lynam DR. "When Do Interaction/Moderation Effects Stabilize in Linear Regression?"<doi:10.1177/25152459251407860>.
Authors:
InteractionPoweR_0.2.4.tar.gz
InteractionPoweR_0.2.4.zip(r-4.7)InteractionPoweR_0.2.4.zip(r-4.6)InteractionPoweR_0.2.4.zip(r-4.5)
InteractionPoweR_0.2.4.tgz(r-4.6-any)InteractionPoweR_0.2.4.tgz(r-4.5-any)
InteractionPoweR_0.2.4.tar.gz(r-4.7-any)InteractionPoweR_0.2.4.tar.gz(r-4.6-any)
InteractionPoweR_0.2.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
InteractionPoweR/json (API)
NEWS
| # Install 'InteractionPoweR' in R: |
| install.packages('InteractionPoweR', repos = c('https://dbaranger.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/dbaranger/interactionpower/issues
Pkgdown/docs site:https://dbaranger.github.io
- name_key - Name key for plotting
Last updated from:f4f2b2ba9b. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 141 | ||
| source / vignettes | OK | 180 | ||
| linux-release-x86_64 | OK | 143 | ||
| macos-release-arm64 | OK | 142 | ||
| macos-oldrel-arm64 | OK | 201 | ||
| windows-devel | OK | 90 | ||
| windows-release | OK | 84 | ||
| windows-oldrel | OK | 81 | ||
| wasm-release | OK | 113 |
Exports:compute_adjustmentcor.mat.3waygenerate_interactiongenerate.interaction.cov.inputnorm2ordinalplot_interactionplot_power_curveplot_simple_slopepower_estimatepower_interactionpower_interaction_3way_r2power_interaction_r2power_interaction_r2_covsrun_pos_power_searchsimple.slopes.3waytest_interaction
Dependencies:beeswarmbootchngptclicodetoolscpp11doParalleldplyrfarverforeachgenericsggbeeswarmggplot2gluegtableisobanditeratorskyotillabelinglatticelifecyclelme4magrittrMASSMatrixminqanlmenloptrpillarpkgconfigpolynompurrrR6rbibutilsRColorBrewerRcppRcppEigenRdpackreformulasRhpcBLASctlrlangS7scalesstringistringrsurvivaltibbletidyrtidyselectutf8vctrsviporviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| compute_adjustment | compute_adjustment |
| See the correlation matrix for a 3-way interaction | cor.mat.3way |
| Generate interaction data set | generate_interaction |
| Creates the input to 'power_interaction_r2_covs()' | generate.interaction.cov.input |
| Name key for plotting | name_key |
| norm2ordinal | norm2ordinal |
| Plot interaction | plot_interaction |
| Plot power curve | plot_power_curve |
| Simple slope plot | plot_simple_slope |
| Power estimate | power_estimate |
| Power analysis for interactions | power_interaction |
| Analytic power analysis for 3-way interactions | power_interaction_3way_r2 |
| Analytic power analysis for interactions | power_interaction_r2 |
| Analytic interaction power analysis with covariates | power_interaction_r2_covs |
| Calculate the point of stability for a two-way interaction estimate | run_pos_power_search |
| See the simple slopes for a 3-way interaction | simple.slopes.3way |
| Test interaction | test_interaction |
