Description Usage Arguments Value Examples

Compute Power for Mediated (Indirect) Effects Requires correlations between all variables as sample size.

1 2 3 | ```
med(rxm1, rxm2 = 0, rxm3 = 0, rxm4 = 0, rxy, rym1, rym2 = 0,
rym3 = 0, rym4 = 0, rm1m2 = 0, rm1m3 = 0, rm1m4 = 0,
rm2m3 = 0, rm2m4 = 0, rm3m4 = 0, alpha = 0.05, mvars, n)
``` |

`rxm1` |
Correlation between predictor (x) and first mediator (m1) |

`rxm2` |
Correlation between predictor (x) and second mediator (m2) |

`rxm3` |
Correlation between predictor (x) and third mediator (m3) |

`rxm4` |
Correlation between predictor (x) and fourth mediator (m4) |

`rxy` |
Correlation between DV (y) and predictor (x) |

`rym1` |
Correlation between DV (y) and first mediator (m1) |

`rym2` |
Correlation between DV (y) and second mediator (m2) |

`rym3` |
Correlation DV (y) and third mediator (m3) |

`rym4` |
Correlation DV (y) and fourth mediator (m4) |

`rm1m2` |
Correlation first mediator (m1) and second mediator (m2) |

`rm1m3` |
Correlation first mediator (m1) and third mediator (m3) |

`rm1m4` |
Correlation first mediator (m1) and fourth mediator (m4) |

`rm2m3` |
Correlation second mediator (m2) and third mediator (m3) |

`rm2m4` |
Correlation second mediator (m2) and fourth mediator (m4) |

`rm3m4` |
Correlation third mediator (m3) and fourth mediator (m4) |

`alpha` |
Type I error (default is .05) |

`mvars` |
Number of Mediators |

`n` |
Sample size |

Power for Mediated (Indirect) Effects

1 2 3 |

pwr2ppl documentation built on June 12, 2019, 5:03 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.