tkl | R Documentation |
Find the optimal W matrix such that the RMSEA and CFI values are as close as possible to the user-specified target values.
tkl(mod, target_rmsea = NULL, target_cfi = NULL, tkl_ctrl = list())
mod |
A |
target_rmsea |
(scalar) Target RMSEA value. |
target_cfi |
(scalar) Target CFI value. |
tkl_ctrl |
(list) A control list containing the following TKL-specific arguments:
|
This function attempts to find optimal values of the TKL parameters
\nu
and \epsilon
such that the resulting correlation
matrix with model error (\Sigma
) has population RMSEA and/or CFI
values that are close to the user-specified values. It is important to note
that solutions are not guaranteed to produce RMSEA and CFI values that are
reasonably close to the target values; in fact, some combinations of RMSEA
and CFI will be difficult or impossible to obtain for certain models (see
Lai & Green, 2016). It can be particularly difficult to find good solutions
when additional restrictions are placed on the minor factor loadings (i.e.,
using the WmaxLoading
and NWmaxLoading
arguments).
Optimization is fastest when the optim_type = optim
optimization method
is chosen. This indicates that optimization should be done using the
L-BFGS-B
algorithm implemented in the optim
function. However, this method can sometimes fail to find a solution.
In that case, I recommend setting optim_type = ga
, which indicates that a
genetic algorithm (implemented in ga
) will be used.
This method takes longer than optim
but is more likely to
find a solution.
Tucker, L. R., Koopman, R. F., & Linn, R. L. (1969). Evaluation of factor analytic research procedures by means of simulated correlation matrices. Psychometrika, 34(4), 421–459.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.