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.
84 stars 46 forks source link

The function "getSavedata_Bparams" doesn't work after running Bayesian Analysis #111

Closed mhwxl2015 closed 4 years ago

mhwxl2015 commented 4 years ago

Dr Michael, Good afternoon. I am running a Bayesian analysis model and trying to save the parameter estimates using the function above via MplusAutomation package version 0.7.3. Attached is the mplus output file.

My code is as follows: library(MplusAutomation) data10132019<-getSavedata_Bparams("01_bayessem01.out", discardBurnin=T)

The error message in the red said "Error in getSection("^\sSAVEDATA INFORMATION\s$", outfiletext) : Standard headers not parsed".

I don't know whether this function is dead or could you please help me to fix this problem?

Thank you very much!

michaelhallquist commented 4 years ago

That function has been removed/deprecated. I had forgotten to add the message, but you can get the same functionality using readModels("nameofMplusoutfile.out", what="bparameters")$bparameters,

Best, Michael