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.
Related Posts with Use Output from LCA with Penn State Plugin
Get the row number of a cellHi everyone, Suppose a variable y, with 100 obs, ranked by id (1 to 100). And among these obs, only…
Why when I control for a key variable results do not change?Dear Statalist, I am estimating the effect of parental separation on the amount of time a child spe…
Descriptive statsHello ! so i hvae trying this code i found in a tutorial to create a table similar to the one joind …
Predicting ProbabilityHey everyone, first of all, I'm not an expert in working with stata, which is why is require your h…
Reshape panel data variable to create a new merged variableDear stata's, Surely the question has a simple answer, but I'm out of ideas on how to find an answe…
Subscribe to:
Post Comments (Atom)
0 Response to Use Output from LCA with Penn State Plugin
Post a Comment