Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: suest mlogit equation not found error


From   natalia malancu <natalia.malancu@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: suest mlogit equation not found error
Date   Tue, 24 Jul 2012 13:37:24 +0200

Thank you, Fernando. It worked fine.

Natalia

On Fri, Jul 20, 2012 at 7:46 PM, Fernando Rios Avila <f.rios.a@gmail.com> wrote:
> My Apologies.
> I think i know what the problem is. Since I don't know how exactly
> your data and results look like, i thought i might create a different
> example.
> . webuse sysdsn4
>
> qui mlogit insure age if male==1, base(1)
>      estimates store m1
> qui mlogit insure age if male==0, base(1)
>      estimates store m2
>   suest m1 m2
>
>   test ([m1_Prepaid=m2_Prepaid]) ([m1_Uninsure=m2_Uninsure])
>
> I think this code does what you want to do (in a very simple
> framework). You might need to adjust it accordingly.
> Fernando
>
> On Fri, Jul 20, 2012 at 1:24 PM, natalia malancu
> <natalia.malancu@gmail.com> wrote:
>> Hi Fernando,
>>
>> to my understanding & based on what I read in previous posts about -suest- that
>> specification applies only when referring regress. I tried it anyway and
>> I'm getting the same error.
>>
>> Natalia
>>
>>
>>
>>
>> On Fri, Jul 20, 2012 at 6:45 PM, Fernando Rios Avila <f.rios.a@gmail.com> wrote:
>>>
>>> Hi Natalia,
>>> I haven't personally done a Chow test using an Mlogit model, however I
>>> believe the right syntax is:
>>>  mlogit Y x1 x2 x3 if period==0, base (0)
>>>  est store model1
>>>  mlogit Y x1 x2 x3 if period==1, base (0)
>>>  est store model2
>>>
>>>  suest model1 model2
>>>  test [ model1_mean=mode2_mean]
>>>
>>> Look at example 2 of the -suest- help file.
>>> Fernando
>>>
>>> On Fri, Jul 20, 2012 at 10:14 AM, natalia malancu
>>> <natalia.malancu@gmail.com> wrote:
>>> > Hi all,
>>> >
>>> > I estimate a mlogit model on two different periods of the same
>>> > sample. Then I want to test if there is a structural change. My
>>> > question is: how do I do Chow Test in stata in this case?
>>> >
>>> > At this point I tried using the -suest- command as follows:
>>> >
>>> > mlogit Y x1 x2 x3 if period==0, base (0)
>>> > est store model1
>>> > mlogit Y x1 x2 x3 if period==1, base (0)
>>> > est store model2
>>> >
>>> > suest model1 model2
>>> > test [ model1=mode2]
>>> >
>>> > but I keep receiving the following error:
>>> >
>>> > "equation model1 not found"
>>> >
>>> > I have also tried test[model1_Y=model2_Y] with similar limited success.
>>> >
>>> > Thanks for helping,
>>> > Natalia
>>> > *
>>> > *   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/
>> *
>> *   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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index