power4mome0.1.0 package

Power Analysis for Moderation and Mediation

do_test

Do a Test on Each Replication

fit_model

Fit a Model to a List of Datasets

gen_boot

Generate Bootstrap Estimates

gen_mc

Generate Monte Carlo Estimates

plot.power_curve

Plot a Power Curve

plot.x_from_power

Plot The Results of 'x_from_power'

pop_es_yaml

Parse YAML-Stye Values For 'pop_es'

power_curve

Power Curve

power4mome-package

power4mome: Power Analysis for Moderation and Mediation

power4test_by_es

Power By Effect Sizes

power4test_by_n

Power By Sample Sizes

power4test

Estimate the Power of a Test

predict.power_curve

Predict Method for a 'power_curve' Object

ptable_pop

Generate the Population Model

rbeta_rs

Random Variable From a Beta Distribution

rbeta_rs2

Random Variable From a Beta Distribution (User Range)

rbinary_rs

Random Binary Variable

rejection_rates

Rejection Rates

rexp_rs

Random Variable From an Exponential Distribution

rlnorm_rs

Random Variable From a Lognormal Distribution

rpgnorm_rs

Random Variable From a Generalized Normal Distribution

rt_rs

Random Variable From a t Distribution

runif_rs

Random Variable From a Uniform Distribution

sim_data

Simulate Datasets Based on a Model

sim_out

Create a 'sim_out' Object

summarize_tests

Summarize Test Results

summary.x_from_power

Summarize 'x_from_power' Results

test_cond_indirect_effects

Test Several Conditional Indirect Effects

test_cond_indirect

Test a Conditional Indirect Effect

test_index_of_mome

Test a Moderated Mediation Effect

test_indirect_effect

Test an Indirect Effect

test_k_indirect_effects

Test Several Indirect Effects

test_moderation

Test All Moderation Effects

test_parameters

Test All Free Parameters

x_from_power

Sample Size and Effect Size Determination

Power analysis and sample size determination for moderation, mediation, and moderated mediation in models fitted by structural equation modelling using the 'lavaan' package by Rosseel (2012) <doi:10.18637/jss.v048.i02> or by multiple regression. The package 'manymome' by Cheung and Cheung (2024) <doi:10.3758/s13428-023-02224-z> is used to specify the indirect paths or conditional indirect paths to be tested.

  • Maintainer: Shu Fai Cheung
  • License: GPL (>= 3)
  • Last published: 2025-09-04