get_CFA_estimates: Conduct Confirmatory Factor Analysis (CFA) and Obtain...

View source: R/get_CFA_estimates.R

get_CFA_estimatesR Documentation

Conduct Confirmatory Factor Analysis (CFA) and Obtain Parameter Estimates

Description

Performs CFA (or accepts an existing fitted model) and extracts the parameter estimates required for generating simulated Thurstonian IRT data.

Usage

get_CFA_estimates(fit_model, response_data = NULL, item_names = NULL)

Arguments

fit_model

Either a character string containing lavaan syntax, OR a pre-fitted lavaan object.

response_data

Optional. Data frame containing Likert-type responses. Required only if fit_model is a syntax string.

item_names

Optional character vector. Names of the items. If NULL, the function automatically detects the observed variables from the model.

Value

A list containing loadings, intercepts, residuals, covariances, and the full model_fit object.


autoFC documentation built on July 14, 2026, 5:07 p.m.