gclm: A Function That Writes, Saves, and Exports Syntax for Fitting...

Description Usage Arguments Value Examples

Description

This function takes the outputted object from dyadVarNames() and automatically writes, returns, and exports (.txt) lavaan() syntax for specifying dyadic configural, loading, and intercept invariant measurement models for either a specified X or Y factor.

Usage

1
gclm(xvar, yvar, waves)

Arguments

xvar

item stem (and delimeter, if present) for x variables

yvar

item stem (and delimeter, if present) for y variables

waves

number of waves to model (i.e., number following each item stem)

Value

character object of lavaan script that can be passed immediately to lavaan functions, while also exporting to current working directory

Examples

1
base.model = gclm(xvar = "sacrifice", yvar = "satisfaction", waves = 5)

jsakaluk/GCLM documentation built on June 23, 2019, 12:04 a.m.