Learn R Programming

pwr2ppl (version 0.5.0)

medserial_paths: 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)

Value

Power for Serial Mediated (Indirect) Effects

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)

Examples

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

Run the code above in your browser using DataLab