summarize_multi_group_model {mxsem} | R Documentation |
summarize_multi_group_model
Description
summarize the results of a multi group model created with mxsem_group_by
Usage
summarize_multi_group_model(multi_group_model)
Arguments
multi_group_model |
multi group model created with mxsem_group_by |
Value
list with goup specific parameters and common parameters
Examples
# THE FOLLOWING EXAMPLE IS ADAPTED FROM
# https://openmx.ssri.psu.edu/docs/OpenMx/latest/_static/Rdoc/mxModel.html
library(mxsem)
model <- 'spatial =~ visual + cubes + paper
verbal =~ general + paragrap + sentence
math =~ numeric + series + arithmet'
mg_model <- mxsem(model = model,
data = OpenMx::HS.ability.data) |>
# we want separate models for all combinations of grades and schools:
mxsem_group_by(grouping_variables = "school") |>
mxTryHard()
# let's summarize the results:
summarize_multi_group_model(mg_model)
[Package mxsem version 0.1.0 Index]