Hi All,
I'm now trying to do some analysis using stata for a latent class model I'm thinking of.
I'm using SC data for my analysis. For example:
pid gid y price contract local wknown tod seasonal
1 1 0 7 5 0 1 0 0
1 1 0 9 1 1 0 0 0
1 1 0 0 0 0 0 0 1
1 1 1 0 5 0 1 1 0
1 2 0 7 0 0 1 0 0
1 2 0 9 5 0 1 0 0
1 2 1 0 1 1 0 1 0
1 2 0 0 5 0 0 0 1
What i want to do is to make certain respondents(distinguished by variable 'pid') not to be allocated in certain classes
For example, if there are 10 respondents and 3 classes, i want to make some of the respondents not to be considered to be allocated in a certain class (say, class 1) at all.
what i saw was i could use 'constraint' option for this, however it seems that only coefficient control is available.
will setting every coefficient for the specific respondents to zero fulfill my wish?
Or if you have any other recommendations, i'm very glad to follow
Thank you in advance
-Hyunhong Choi
I'm now trying to do some analysis using stata for a latent class model I'm thinking of.
I'm using SC data for my analysis. For example:
pid gid y price contract local wknown tod seasonal
1 1 0 7 5 0 1 0 0
1 1 0 9 1 1 0 0 0
1 1 0 0 0 0 0 0 1
1 1 1 0 5 0 1 1 0
1 2 0 7 0 0 1 0 0
1 2 0 9 5 0 1 0 0
1 2 1 0 1 1 0 1 0
1 2 0 0 5 0 0 0 1
What i want to do is to make certain respondents(distinguished by variable 'pid') not to be allocated in certain classes
For example, if there are 10 respondents and 3 classes, i want to make some of the respondents not to be considered to be allocated in a certain class (say, class 1) at all.
what i saw was i could use 'constraint' option for this, however it seems that only coefficient control is available.
will setting every coefficient for the specific respondents to zero fulfill my wish?
Or if you have any other recommendations, i'm very glad to follow
Thank you in advance
-Hyunhong Choi
Comment