michaelhallquist / MplusAutomation

The MplusAutomation package leverages the flexibility of the R language to automate latent variable model estimation and interpretation using Mplus, a powerful latent variable modeling program developed by Muthen and Muthen (www.statmodel.com). Specifically, MplusAutomation provides routines for creating related groups of models, running batches of models, and extracting and tabulating model parameters and fit statistics.
81 stars 46 forks source link

Retrieve ICCs using texreg::screenreg #201

Open linem7 opened 3 months ago

linem7 commented 3 months ago

Hello,

I was wondering if it would be possible to use screenreg to retrieve the ICCs in a multilevel model. While I understand that the information is already available in data_summary, I am unsure about how to merge them into a single table using screenreg. Below, I have included some code from my previous work for reference. Thank you for your time and help!

screenreg(list(models$model1.out,
               models$model2.out),
          custom.model.names = cc("Math, Emotion"),
          params = cc("regression, new"),
          summaries = cc("Observations, LL_Mean, AIC_Mean, BIC_Mean, CFI_Mean, TLI_Mean, RMSEA_Mean, SRMR.Within_Mean, SRMR.Between_Mean"),
          type = "un",
          omit.coef = "(?<!W_V)<->", # excluded the row with "B" and "<->" sign
          digits = 3
          )

Thank you very much for your assistance!