getDydmacs | R Documentation |
Calculates dmacs difference in expected indicator scores for between dyad members
getDydmacs(dat, dvn, fit, nodewidth = 0.01, lowerLV = -5, upperLV = 5)
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) |
vector of d_macs values
Other supplemental model calculators:
getDyReliability()
,
getIndistFit()
dvn <- scrapeVarCross(dat = commitmentQ, x_order = "spi", x_stem = "sat.g", x_delim1 = ".",
x_delim2="_", distinguish_1="1", distinguish_2="2")
sat.config.script <- scriptCor(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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.