Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

# Re: st: RE: Membership (component) Determinant using FMM Command

 From Allen Young To statalist@hsphsun2.harvard.edu Subject Re: st: RE: Membership (component) Determinant using FMM Command Date Thu, 17 Feb 2011 11:00:04 -0500

I tried the following syntax:
predict age if e(sample), equation(component1). I got a response that
age is already defined. Did l do something wrong? Is predvar not my
regressors?

Maybe l did not explain my problem well. Let me specific your paper.
Deb et al. (in press). The effect of job loss on overweight and
drinking. Journal of Health Economics. How do l get the results in
Table 5. (Determinants of the posterior probability of being in
Component 2 for BMI).

Thanks

On Wed, Feb 16, 2011 at 5:52 PM, Partha Deb <partha.deb@hunter.cuny.edu> wrote:
> Allen,
>
> After you have parameter estimates from -fmm-, you can get predictions of
> various types using the following syntax:
>
> predict predvar if e(sample), equation(component#)
>
> where predvar is the predicted variable name and component# is component1,
> component2, ...
>
> or predictions of posterior probabilities using
>
> predict predvar if e(sample), post equation(component#)
>
> Once you have the posterior probabilities, you can use the ranking of the
> posterior probabilities to assign an observation into a class.  In the 2
> component case, this is equivalent to checking whether the posterior
> probability of being in component1 is > (<) 0.5.
>
> Hope this helps.
>
> Partha
>
> On 2/16/2011 11:46 AM, Nick Cox wrote:
>>
>> This is the third time of asking and goes beyond Statalist etiquette on
>> this point, which is clearly laid out at
>>
>>
>> and stipulates _one repost only_.
>>
>> If you don't get an answer to this, sorry, but that's it. No one knows or
>> wants to say.
>>
>> Nick
>> n.j.cox@durham.ac.uk
>>
>> Allen Young
>>
>> I want to use the estimates obtained from fmm command to calculate the
>> posterior probability of being in each of the components (latent
>>
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
>
> --
> Partha Deb
> Professor of Economics
> Hunter College
> ph:  (212) 772-5435
> fax: (212) 772-5398
> http://urban.hunter.cuny.edu/~deb/
>
> Emancipate yourselves from mental slavery
> None but ourselves can free our minds.
>        - Bob Marley
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/