Dear Statalisters,
i am fairly inexperienced in Stata and i currently try to run some latent class analyses with the plugin from Penn State University (https://www.methodology.psu.edu/research-and-rigor/). While i can recreate the example models provided by the creators in the attached do-file, i now wonder how to use the generated output (i.e. the identified latent classes) for further analysis. First and foremost, i cannot figure out how to generate a variable that assigns all observations into their respective classes based on their estimated probabilities. I assume i have to store the generated predicitive class probabilities into a matrix using "mat" and "svmat", but do not know where to go from there. For example, in the proposed example 1, there are five classes identified and variables generated for estimated predicted probabilities (these are named _post_prob1, _post_prob2 etc.). When i compute the matrix for post_prob and save it through svmat, i just get a variable with missing values.
I use Stata 15 and before installing the Penn State plugin, i also used Stata´s gsem command to run lca. Unfortunately, this resulted in problems by not reaching model fits, despite trying the various methods described in Stata´s introduction to sem (section 12). Resorting to the plugin is fine with me, because it offers more comprehensive information criteria and runs much faster. I´m afraid i might just lack the basic understanding of the Stata syntax to handle the plugins´ output correctly.
I am sure this is not a very complex problem and it would be much appreciated if someone could provide some general information/coding examples on how to generate variables out of doLCA´s output.
0 Response to Use Output from LCA with Penn State Plugin
Post a Comment