| .simulate_cfm_eigen | R Documentation |
Internal helper called from efa_nest(). Simulates nreps datasets from an
(nf - 1)-factor reference model, given that model's loadings Lambda and
uniquenesses Psi, and returns the nf-th largest eigenvalue of each simulated
correlation matrix. The data are drawn with the shared Z * M rule (see
.simulate_cfm_mvn()) using the factor-score square root
M = t([Lambda | diag(sqrt(Psi))]), so a row randn(1, nf - 1 + p) * M is
N(0, Lambda Lambda' + diag(Psi)). Drawing nf - 1 + p standard normals and
post-multiplying by the factor-score matrix is faster than forming the model-
implied correlation matrix and drawing from it, and matches the position at which
efa_nest() reads the reference eigenvalue.
.simulate_cfm_eigen(nf, N, Lambda, Psi, nreps = 1000L)
nf |
integer. Position of the empirical eigenvalue being tested (1-based);
the |
N |
integer. Number of cases / observations per simulated dataset. |
Lambda |
numeric matrix. Loadings of the |
Psi |
numeric vector. Uniquenesses ( |
nreps |
integer. Number of datasets to simulate. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.