- data
A matrix or data.frame containing multivariate observations,
rows = observations, columns = variables/items
- n.factors
A number specifying the number of group factors that the items load on
- model
A string that by default NULL (=balanced) distributes the items evenly
among the number of group factors. This only works if the items are a multiple of
the number of group factors and the items are already grouped in the data set,
meaning, e.g., items 1-5 load on one factor, 6-10 on another, and so on.
A model file can be specified in lavaan syntax style (f1=~.+.+.) to relate the items
to the group factors. The items' names need to equal the column names in the data set,
aka the variable names
- model.type
A string denoting if the model that should be fit is the second-order or
bi-factor model or the correlated factor model. This comes down to the researcher's theory about the measurement
and the model fit.
- interval
A number specifying the confidence interval, which is Wald-type
- missing
A string denoting the missing data handling, can be "fiml" (full information ML) or "listwise".
Specifying "pairwise" will defulat to "fiml"
- fit.measures
A logical denoting if fit.measures from the CFA should be computed,
the output then contains the chisq statistic, chisq df, chisq p-value, cfi, tli,
rmsea, rmsea 90% ci lower, rmsea 90% ci upper, rmsea<.05 p-value, aic, bic,
unbiased srmr, unbiased srmr 90% ci lower, unbiased srmr 90% ci upper, unbiased srmr<.05 p-value