Skip to contents

Quick diagnostics for multiple-group lavaan models

Usage

mgcfaDiagnose(lavaan.model, output = c("overall", "neg.var", "mi"))

Arguments

lavaan.model

Fitted lavaan multiple group model.

output

A character list of what diagnostics should be computed. #'

overall

Prints chi-sq, CFI, RMSEA, and SRMR

neg.var

Checks if there are negative variances of latent variables, if yes, identifies the groups and prints them.

mi

Aggregates modification indices across groups, finding the most impactful. Also prints the top part of sorted table of modification indices.

constraints

Optional. Applies and prints lavTestScore_clean.

Details

Doesn't return anything.