dvs_ivs {semhelpinghands}R Documentation

Sample Dataset: 3 Predictors and 3 Outcomes

Description

A path model with three predictors and three outcomes, for illustration.

Usage

dvs_ivs

Format

A data frame with 100 rows and 7 variables:

y1

Outcome variable 1. Numeric.

y2

Outcome variable 2. Numeric.

y3

Outcome variable 3. Numeric.

x1

Predictor 1. Numeric.

x2

Predictor 2. Numeric.

x3

Predictor 3. Numeric.

gp

Group variable: "gp1" or "gp2". String.

Examples

data(dvs_ivs)
library(lavaan)
mod <-
"
y1 ~ x1 + x2 + x3
y2 ~ x1 + x3
y3 ~ y2 + x2
"
fit <- sem(mod, dvs_ivs)
parameterEstimates(fit)
fit_gp <- sem(mod, dvs_ivs, group = "gp")
parameterEstimates(fit_gp)


[Package semhelpinghands version 0.1.11 Index]