medserial_paths: Compute Power for Serial Mediation Effects Requires...

View source: R/medserial_paths.R

medserial_pathsR Documentation

Compute Power for Serial Mediation Effects Requires correlations between all variables as sample size. This approach calculates power for the serial mediation using joint significance (recommended) and path coefficients

Description

Compute Power for Serial Mediation Effects Requires correlations between all variables as sample size. This approach calculates power for the serial mediation using joint significance (recommended) and path coefficients

Usage

medserial_paths(a1, a2, b1, b2, d, cprime, n, alpha = 0.05, reps = 1000)

Arguments

a1

path between predictor and first mediator

a2

path between predictor and first mediator

b1

Path between first mediator and dependent variable

b2

Path between first mediator and dependent variable

d

Path first mediator (m1) and second mediator (m2)

cprime

Path between predictor and dependent variable

n

Sample size

alpha

Type I error (default is .05)

reps

number of repetitions (1000 is default)

Value

Power for Serial Mediated (Indirect) Effects

Examples

medserial_paths(a1=.3, a2=.3, b1=.35,
b2=.3,d=.2,cprime=.1,n=150)

pwr2ppl documentation built on Sept. 6, 2022, 5:06 p.m.