View source: R/server.functions.R
pairwiseFit | R Documentation |
Computes MGCFA model for a given pair of groups
pairwiseFit(
model,
data,
group = "cntry",
constraints = c(""),
pairs.of.groups = NULL,
message = "Fitting pairwise lavaan models",
shiny = FALSE,
signed = F,
...
)
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. |
Mostly for internal use within incrementalFit
The function returns matrix of fit indices for multiple group CFA models fitted to each possible pair of groups.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.