pairwiseFit: Computes MGCFA model for a given pair of groups

View source: R/server.functions.R

pairwiseFitR Documentation

Computes MGCFA model for a given pair of groups

Description

Computes MGCFA model for a given pair of groups

Usage

pairwiseFit(
  model,
  data,
  group = "cntry",
  constraints = c(""),
  pairs.of.groups = NULL,
  message = "Fitting pairwise lavaan models",
  shiny = FALSE,
  signed = F,
  ...
)

Arguments

model

Model in lavaan syntax

data

Data object

group

Character. Group variable name.

constraints

Can be "", "loadings", or c("loadings", "intercepts").

pairs.of.groups

Full list of pairs of groups, used in shiny only.

message

Notification in shiny.

shiny

If it is executed in shiny environment.

signed

Only for DMACS, if the signed version should be used. See Nye et al 2019

...

Arguments passed to lavaan 'cfa' function.

Details

Mostly for internal use within incrementalFit

Value

The function returns matrix of fit indices for multiple group CFA models fitted to each possible pair of groups.


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