View source: R/medserial_paths.R
medserial_paths | R 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
medserial_paths(a1, a2, b1, b2, d, cprime, n, alpha = 0.05, reps = 1000)
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) |
Power for Serial Mediated (Indirect) Effects
medserial_paths(a1=.3, a2=.3, b1=.35, b2=.3,d=.2,cprime=.1,n=150)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.