View source: R/getDyReliability.R
getDyReliability | R Documentation |
This function takes the model from fitted scriptCor() scripts and returns omega total coefficients for each dyad member, adapted following Formula 2 in McNeish (2018).
getDyReliability(dvn, fit)
dvn |
input dvn list from scrapeVarCross |
fit |
outputted dyadic cfa lavaan object based on the default (i.e., "configural") dyadCFA() function |
a tibble/data frame with calculated omega total coefficients for dyad Member 1 and Member 2
Other supplemental model calculators:
getDydmacs()
,
getIndistFit()
dvn <- scrapeVarCross(dat = commitmentQ, x_order = "spi", x_stem = "sat.g", x_delim1 = ".",
x_delim2="_", distinguish_1="1", distinguish_2="2")
sat.indist.script <- scriptCor(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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.