| simFA | R Documentation | 
A function to simulate factor loadings matrices and Monte Carlo data sets for common factor models, bifactor models, and IRT models.
simFA(
  Model = list(),
  Loadings = list(),
  CrossLoadings = list(),
  Phi = list(),
  ModelError = list(),
  Bifactor = list(),
  MonteCarlo = list(),
  FactorScores = list(),
  Missing = list(),
  Control = list(),
  Seed = NULL
)
Model | 
 (list) 
  | 
Loadings | 
 (list) 
  | 
CrossLoadings | 
 (list) 
  | 
Phi | 
 (list) 
  | 
ModelError | 
 (list) 
  | 
Bifactor | 
 (list) 
  | 
MonteCarlo | 
 (list) 
  | 
FactorScores | 
 (list) 
  | 
Missing | 
 (list) 
  | 
Control | 
 (list) 
  | 
Seed | 
 (integer) Starting seed for the random number
generator; defaults to   | 
For a complete description of simFA's
capabilities, users are encouraged to consult the simFABook
at http://users.cla.umn.edu/~nwaller/simFA/simFABook.pdf.
simFA is a program for exploring factor analysis
models via simulation studies.
After calling simFA  all relevant output can be saved
for further processing by calling one or more of the following
object names.
loadings A common factor or bifactor
loadings matrix.
Phi A factor correlation matrix.
urloadings The unrotated loadings matrix.
h2 A vector of item communalities.
h2PopME A vector item communalities that
may include model approximation error.
Rpop The model-implied population correlation
matrix.
RpopME The model-implied population
correlation matrix with model error.
W The factor loadings for the minor factors
(when ModelError = TRUE). Default = NULL.
Xm That part of the observed scores that
is due to the minor common factors.
SFSvars  Variances of the Specific Factors
in the metric of the observed scores.
ModelErrorFitStats A list of model fit
indices (for the underlying equations, see: Bentler,
1990; Hu & Bentler, 1999; Marsh, Hau, & Grayson,
2005; Steiger, 2016):
SRMR_theta Standardized Root Mean
Square Residual based on the model that is
implied  by the error free major factors
only (underlying Rpop),
SRMR_thetahat  Standardized Root
Mean Square Residual based on an exploratory
factor analysis of the population
correlation matrix, RpopME,
CRMR_theta  Correlation Root Mean
Square Residual based on the model that is
implied  by the error free major factors
only (underlying Rpop),
CRMR_thetahat Correlation Root Mean
Square Residual  based on an exploratory factor
analysis of the population correlation matrix,
RpopME,
RMSEA_theta Root Mean Square Error
of Approximation (Steiger, 2016) based on the
model that is implied  by the error free major
factors only (underlying Rpop),
RMSEA_thetahat Root Mean Square
Error of Approximation (Steiger, 2016) based
on an exploratory factor analysis of the
population correlation matrix, RpopME,
CFI_theta  Comparative Fit Index
(Bentler, 1990) based on the model that is
implied  by the error free major factors
only (underlying Rpop),
CFI_thetahat Comparative Fit Index
(Bentler, 1990)  based on an exploratory
factor analysis of the population
correlation matrix, RpopME.
Fm MLE fit function for population
target model.
Fb MLE fit function for population
baseline model.
DFm Degrees of freedom for
population target model.
CovMatrices A list containing:
CovMajor The model implied
covariances from the major factors.
CovMinor The model implied
covariances from the minor factors.
CovUnique The model implied
variances from the uniqueness factors.
Bifactor A list containing:
loadingsHier Factor loadings of the
1st order solution of a hierarchical
bifactor model.
PhiHier Factor correlations of the
1st order solution of a hierarchical bifactor
model.
Scores A list containing:
FactorScores Factor scores for the
common and uniqueness factors.
FacInd Factor indeterminacy indices
for the error free population model.
FacIndME Factor score indeterminacy
indices for the population model with model
error.
ObservedScores A matrix of model
implied ObservedScores. If
Thresholds were supplied under
Keyword FactorScores,
ObservedScores will be transformed
into Likert scores.
Monte A list containing output from the
Monte Carlo simulations if generated.
IRT Factor loadings expressed in the normal
ogive IRT metric. If Thresholds were given
then IRT difficulty values will also be returned.
Seed The initial seed for the random
number generator.
call A copy of the function call.
cn A list of all active and nonactive
function arguments.
Niels G. Waller with contributions by Hoang V. Nguyen
Bentler, P. M. (1990). Comparative fit indexes in structural models. Psychological Bulletin, 107(2), 238–246.
Hu, L.-T. & Bentler, P. M. (1999). Cutoff criteria for fit indexes in covariance structure analysis: Conventional criteria versus new alternatives. Structural Equation Modeling: A Multidisciplinary Journal, 6(1), 1–55.
Marsh, H. W., Hau, K.-T., & Grayson, D. (2005). Goodness of fit in structural equation models. In A. Maydeu-Olivares & J. J. McArdle (Eds.), Multivariate applications book series. Contemporary psychometrics: A festschrift for Roderick P. McDonald (p. 275–340). Lawrence Erlbaum Associates Publishers.
Schmid, J. and Leiman, J. M. (1957). The development of hierarchical factor solutions. Psychometrika, 22(1), 53–61.
Steiger, J. H. (2016). Notes on the Steiger–Lind (1980) handout. Structural Equation Modeling: A Multidisciplinary Journal, 23:6, 777-781.
Tucker, L. R., Koopman, R. F., and Linn, R. L. (1969). Evaluation of factor analytic research procedures by means of simulated correlation matrices. Psychometrika, 34(4), 421–459.
## Not run:
#  Ex 1. Three Factor Simple Structure Model with Cross loadings and
#  Ideal Non salient Loadings
   out <-  simFA(Seed = 1)
   print( round( out$loadings, 2 ) )
# Ex 2. Non Hierarchical bifactor model 3 group factors
# with constant loadings on the general factor
   out <- simFA(Bifactor = list(Bifactor = TRUE,
                                Hierarchical = FALSE,
                                F1FactorRange = c(.4, .4),
                                F1FactorDist = "runif"),
                Seed = 1)
   print( round( out$loadings, 2 ) )
   # Ex 3.  Model Fit Statistics for Population Data with
   # Model Approximation Error. Three Factor model.
       out <- simFA(Loadings = list(FacLoadDist = "fixed",
                                    FacLoadRange = .5),
                    ModelError = list(ModelError = TRUE,
                                      NMinorFac = 150,
                                      ModelErrorType = "V",
                                      ModelErrorVar = .1,
                                      Wattempts = 10000,
                                      epsTKL = .2),
                    Seed = 1)
       print( out$loadings )
       print( out$ModelErrorFitStats[seq(2,8,2)] )
## End(**Not run**)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.