View source: R/Syntax-Functions.R
efa_cfa_syntax | R Documentation |
Uses the factor loadings matrix, presumably from an exploratory factor analysis, to generate lavaan compatible confirmatory factory analysis syntax.
efa_cfa_syntax( loadings, simple = TRUE, threshold = NA, single.item = c("keep", "drop", "none"), identified = TRUE, constrain0 = FALSE )
loadings |
matrix of factor loadings |
simple |
logical; Should the simple structure be returned (default)?
If |
threshold |
numeric between 0 and 1 indicating the minimum (absolute) value
of the loading for an item on a factor. Must be specified when |
single.item |
character indicating how single-item factors should be treated.
Use |
identified |
logical; Should identification check for rotational uniqueness a la Millsap (2001) be performed? |
constrain0 |
logical; Should variable(s) with all loadings below |
loadings <- matrix(c(rep(.2, 3), rep(.6, 3), rep(.8, 3), rep(.3, 3)), ncol = 2) efa_cfa_syntax(loadings) # simple structure efa_cfa_syntax(loadings, simple = FALSE, threshold = .25) # allow cross-loadings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.