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

Description Usage Arguments Value Examples

View source: R/medserial_paths.R

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

1
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

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

pwr2ppl documentation built on April 4, 2021, 9:06 a.m.