I recently ran a latent class analysis for my choice experiment data using the "lclogit" command. I am trying to get the latent class model but keep getting the error "varlist not allowed."
I ran the lclogit with my dependent variable "Select" the dummy coded optout, and my attributes. I included 2 demographic variables in the membership. This coding worked.
My exact coding was: lclogit Select optout quail_rec tort_rec water_med water_high scenic_med scenic_high Tax, group(groupid) id(Respondent) nclasses(3) membership(gender_f age)
For the latent class model, I used the coding: "lclogitml iterate (50)", but I got the error "varlist not allowed"
I am trying to get the latent class model with standard errors and coefficients. Can anyone help? Thanks.
Related Posts with Post estimation models for latent class analyses
How to display the P value of the mediation with khb command?Hi all, Recently I read a paper published in JAMA Pediatrics(doi:10.1001/jamapediatrics.2019.1212),…
renaming variables using values they holdHey everyone, Is there a simple command (or few lines of code) to rename variables based on a speci…
Sample size estimation for comparison of three proportions: Control, Treatment1 and Treatment2Dear StataList, How can I calculate the sample size requirements for proportions in 3 (three) groups…
Code of Patell Z-statisticGoodmorning everyone, I'd like to derive a Z-statistic by means of the Patell test (https://www.eve…
Taking the average of observations within a specific date rangeHi, I want to compute the average of a variable (teamsize) for observations within a specific time …
Subscribe to:
Post Comments (Atom)
0 Response to Post estimation models for latent class analyses
Post a Comment