Skip to contents

Effects for the model \(X \to M \to Y\).

Usage

FigPlotEffects(dynamics = 0, std = FALSE, max_delta_t = 30, xmy = TRUE)

Arguments

dynamics

Integer. dynamics = 0 for original drift matrix, dynamics = -1 for near-neutral dynamics, and dynamics = 1 for stronger damping.

std

Logical. If std = TRUE, standardized total, direct, and indirect effects. If std = FALSE, unstandardized total, direct, and indirect effects.

max_delta_t

Numeric. Maximum time interval.

xmy

Logical. If xmy = TRUE, plot the effects for the x -> m -> ymediation model. Ifxmy = FALSE, plot the effects for the y -> m -> x` mediation model.

Author

Ivan Jacob Agaloos Pesigan

Examples

FigPlotEffects()
#> 
#> phi:
#>        x      m      y
#> x -0.357  0.000  0.000
#> m  0.771 -0.511  0.000
#> y -0.450  0.729 -0.693