A Function Calculates Omega Total Coefficients from a Dyadic CFA
Source:R/getDyReliability.R
getDyReliability.Rd
This function takes the model from fitted scriptCFA() scripts and returns omega total coefficients for each dyad member, adapted following Formula 2 in McNeish (2018).
See also
Other supplemental model calculators:
getDydmacs()
,
getIndistFit()
Examples
dvn <- scrapeVarCross(dat = commitmentQ, x_order = "spi", x_stem = "sat.g", x_delim1 = ".",
x_delim2="_", distinguish_1="1", distinguish_2="2")
sat.indist.script <- scriptCFA(dvn, lvname = "Sat")
sat.indist.mod <- lavaan::cfa(sat.indist.script, data = commitmentQ, std.lv = FALSE,
auto.fix.first= FALSE, meanstructure = TRUE)
getDyReliability(dvn, sat.indist.mod)
#> # A tibble: 1 × 2
#> omega.1 omega.2
#> <dbl> <dbl>
#> 1 0.948 0.948