Title: | Exploratory Factor Analysis Using Model Implied Instrumental Variables |
---|---|
Description: | Data-driven approach for Exploratory Factor Analysis (EFA) that uses Model Implied Instrumental Variables (MIIVs). The method starts with a one factor model and arrives at a suggested model with enhanced interpretability that allows cross-loadings and correlated errors. |
Authors: | Lan Luo [aut, cre], Kathleen Gates [aut], Kenneth A. Bollen [aut] |
Maintainer: | Lan Luo <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.2 |
Built: | 2024-11-12 02:55:38 UTC |
Source: | https://github.com/lluo0/miivefa |
This function is the user-level function that conducts miivefa.
miivefa(data, sigLevel = .05, scalingCrit = "sargan+factorloading_R2", correlatedErrors = NULL)
miivefa(data, sigLevel = .05, scalingCrit = "sargan+factorloading_R2", correlatedErrors = NULL)
data |
A data frame, list or environment or an object coercible by as.data.frame to data frame. The most common application is to supply a data.frame. |
sigLevel |
The significance level threshold, default is .05. |
scalingCrit |
The criterion used to select the scaling indicators, default is 'factorloading_R2.'
More details see |
correlatedErrors |
The pairs of variables whose errors should be correlated in the model search procedure, default is NULL. |
A miivefa object containing a vector of the recovered model syntax, and a miivsem object of model fit of the recovered model when applicable. The recovered model syntax and miivsem fit object can be accessed using output$model and output$fit. The output$model miivsem object contains both parameter estimation and model fit information.
This function selects a scaling indicator for an initial one factor model given a raw data frame matrix.
select_scalingind(data, sigLevel = .05, scalingCrit = "sargan+factorloading_R2", correlatedErrors = NULL)
select_scalingind(data, sigLevel = .05, scalingCrit = "sargan+factorloading_R2", correlatedErrors = NULL)
data |
A data frame, list or environment or an object coercible by as.data.frame to data frame. The most common application is to supply a data.frame. |
sigLevel |
The significance level threshold, default is .05. |
scalingCrit |
The criterion used to select the scaling indicators, default is 'sargan+factorloading_R2.' |
correlatedErrors |
The pairs of variables whose errors should be correlated in the model search procedure, default is NULL. |
All possible criteria for scalingCrit
order: uses the first appearing variable as the scaling indicator
sargan: uses the variable with the least number of significant sargans as the scaling indicator. if multiple variables have the same least number of significant sargans, chooses the first appearing variable.
R2: uses the variable with the highest R2 as the scaling indicator. if multiple variables have the same R2 value, chooses the first appearing variable.
factor loading: uses the variable with the most number of significant factor loadings as the scaling indicator. if multiple variables have the same most number of significant factor loadings, chooses the first appearing variable.
sargan_R2: uses the variable with the least number of significant sargans as the scaling indicator. if multiple variables have the same least number of significant sargans, chooses the one with higher R2. if still multiple options, chooses the first appearing variable.
sargan_factorloading: uses the variable with the least number of significant sargans as the scaling indicator. if multiple variables have the same least number of significant sargans, chooses the one with more significant factor loadings. if still multiple options, chooses the first appearing variable.
sargan_factorloading_R2: uses the variable with the least number of significant sargans as the scaling indicator. if multiple variables have the same least number of significant sargans, chooses the one with more significant factor loadings. if still multiple options, chooses the one with higher R2.
factorloading_R2: uses the variable with the most number of significant factor loadings as the scaling indicator. if multiple variables have the same nist number of significant factor loadings, chooses the one with higher R2. if still multiple options, chooses the first appearing variable.
factorloading_sargan: uses the variable with the most number of significant factor loadings as the scaling indicator. if multiple variables have the same nist number of significant factor loadings, chooses the one with less significant sargans. if still multiple options, chooses the first appearing variable.
factorloading_sargan_R2: uses the variable with the most number of significant factor loadings as the scaling indicator. if multiple variables have the same nist number of significant factor loadings, chooses the one with less significant sargans. if still multiple options, chooses the one with higher R2.
sargan+factorloading: uses the variable with the least sum of significant sargans and non-signficant factor loadings. if multiple variables have the same least sum of significnat sargans and non-significant factor loadings, chooses the first appearing variable.
sargan+factorloading_R2: uses the variable with the least sum of significant sargans and non-signficant factor loadings. if multiple variables have the same least sum of significnat sargans and non-significant factor loadings, chooses the one with higher R2.
A vector indicating the variable (column name) that is suggested to be the scaling indicator for the initial one factor model.