getDydmacs {dySEM}R Documentation

Calculates dmacs difference in expected indicator scores for between dyad members

Description

Calculates dmacs difference in expected indicator scores for between dyad members

Usage

getDydmacs(dat, dvn, fit, nodewidth = 0.01, lowerLV = -5, upperLV = 5)

Arguments

dat

data frame of indicators

dvn

input dvn list from scrapeVarCross

fit

outputted dyadic cfa lavaan object; should be from a partial-invariance model

nodewidth

space between nodes during quadrature approximation (default = .01)

lowerLV

lowest latent variable value evaluated (default = -5)

upperLV

greatest latent variable value evaluated (default = 5)

Value

vector of d_macs values

See Also

Other supplemental model calculators: getDyReliability(), getIndistFit()

Examples

dvn <- scrapeVarCross(dat = commitmentQ, x_order = "spi", x_stem = "sat.g", x_delim1 = ".",
x_delim2="_", distinguish_1="1", distinguish_2="2")
sat.config.script <- scriptCFA(dvn, lvname = "Sat",
constr_dy_meas = "none",
constr_dy_struct = "none")

sat.config.mod <- lavaan::cfa(sat.config.script, data = commitmentQ, std.lv = FALSE,
auto.fix.first= FALSE, meanstructure = TRUE)
getDydmacs(commitmentQ, dvn, sat.config.mod)


[Package dySEM version 1.0.0 Index]