BK: The causal step methods more widely known as the Baron-Kenny...

View source: R/BK.R

BKR Documentation

The causal step methods more widely known as the Baron-Kenny method

Description

Perform the Baron-Kenny method on a recursive path model.

Usage

BK(out, alpha = out$alpha)

Arguments

out

An output of class PAmediaiton form pathanalysis::mediation.

alpha

Type I error rate. Default is the one from the original mediation.

Value

Determine if there is a mediated relation for each indirect effects and whether it is partial or complete.

Examples

res <- mediation(model = y ~ m2 ~ m1 ~ x, data = medEX, standardized = TRUE)
BK(res)

quantmeth/pathanalysis documentation built on Aug. 6, 2023, 8:56 a.m.