pa_dat2 | R Documentation |
A four-variable dataset with 100 cases, with one influential case.
pa_dat2
A data frame with 100 rows and 5 variables:
Case ID. Character.
Predictor. Numeric.
Predictor. Numeric.
Mediator. Numeric.
Outcome variable. Numeric.
library(lavaan)
data(pa_dat2)
mod <-
"
m1 ~ a1 * iv1 + a2 * iv2
dv ~ b * m1
a1b := a1 * b
a2b := a2 * b
"
fit <- sem(mod, pa_dat2)
summary(fit)
inf_out <- influence_stat(fit)
gcd_plot(inf_out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.