Learn R Programming

pwr2ppl (version 0.5.0)

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

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)

Usage

medserial(rxm1, rxm2, rxy, rm1m2, rym1, rym2, n, alpha = 0.05, rep = 1000)

Value

Power for Serial Mediated (Indirect) Effects

Arguments

rxm1

Correlation between predictor (x) and first mediator (m1)

rxm2

Correlation between predictor (x) and second mediator (m2)

rxy

Correlation between DV (y) and predictor (x)

rm1m2

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

rym1

Correlation between DV (y) and first mediator (m1)

rym2

Correlation between DV (y) and second mediator (m2)

n

sample size

alpha

Type I error (default is .05)

rep

number of repetitions (1000 is default)

Examples

Run this code
medserial(rxm1=.3, rxm2=.3, rxy=-.35,
rym1=-.5,rym2=-.5, rm1m2=.7,n=150)

Run the code above in your browser using DataLab