Bookmark and Share

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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: RE: Membership (component) Determinant using FMM Command
Date   Thu, 17 Feb 2011 16:16:16 +0000

The syntax of -predict- is always that you predict a _new_ variable. So, if -age- is already a variable in your dataset, your command won't work, and you need to specify a name of a new variable. 

BTW, I believe "Deb" is Partha's surname, or family name. Otherwise put, Partha Deb is not Deb Partha. 

Nick 
[email protected] 

Allen Young

[...] 

Thanks Deb for the reply.

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?

[...] 

On Wed, Feb 16, 2011 at 5:52 PM, Partha Deb <[email protected]> wrote:
>
> 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.
>

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index