incrementalFit: Run pairwise models and compute decrease in fit

View source: R/server.functions.R

incrementalFitR Documentation

Run pairwise models and compute decrease in fit

Description

Runs two MGCFA models for each possible pair of groups and computes change in fit.

Usage

incrementalFit(..., level = "metric")

Arguments

...

The arguments passed to pairwiseFit. Required arguments are 'model', 'data', and 'group'.

level

Character. A model set to be computed. The function will compute a decrease in fit between two models:

metric

(default) between configural and metric models.

scalar

between metric and scalar models.

at.once

between configural and scalar models.

intercepts.first

between configural and model with equal intercepts/thresholds, but free loadings (Wu & Estabrook, 2017's step one). Appropriate when all the indicators are ordlinal.

intercepts.scalar

between a model with equal intercepts/thresholds, but free loadings and a full scalar model (Wu & Estabrook, 2017's step two). Appropriate when all the indicators are ordlinal.

Value

Returns a list with detailed output on every available fit index, and a large matrix used for plotting with plotDistances


MaksimRudnev/MIE.package documentation built on March 5, 2024, 1:24 p.m.