wb | R Documentation |
Generate a population correlation matrix using the model described in Wu and Browne (2015).
wb(mod, target_rmsea, wb_mod = NULL, adjust_target = TRUE)
mod |
A |
target_rmsea |
(scalar) Target RMSEA value. |
wb_mod |
( |
adjust_target |
(TRUE; logical) Should the target_rmsea value be adjusted to ensure that solutions have RMSEA values that are close to the provided target RMSEA value? Defaults to TRUE and should stay there unless you have a compelling reason to change it. |
The Wu and Browne method generates a correlation matrix with model
error (\Sigma
) using
(\Sigma | \Omega) ~ IW(m, m \Omega),
where m ~= 1/\epsilon^2
is a precision parameter related to RMSEA
(\epsilon
) and IW(m, m \Omega)
denotes an inverse Wishart
distribution. Note that there is no guarantee that the RMSEA will be very
close to the target RMSEA, particularly when the target RMSEA value is
large. Based on experience, the method tends to give solutions with RMSEA
values that are larger than the target RMSEA values. Therefore, it might be
worth using a target RMSEA value that is somewhat lower than what is
actually needed. Alternatively, the get_wb_mod
function can
be used to estimate a coefficient to shrink the target RMSEA value by an
appropriate amount so that the solution RMSEA values are close to the
(nominal) target values.
Justin Kracht krach018@umn.edu
Wu, H., & Browne, M. W. (2015). Quantifying adventitious error in a covariance structure as a random effect. Psychometrika, 80(3), 571–600. https://doi.org/10/gjrkc4
# Specify a default model using simFA()
mod <- fungible::simFA(Seed = 42)
set.seed(42)
wb(mod, target_rmsea = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.