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 at the end of May, 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-


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: -suest-
Date   Wed, 13 Feb 2013 14:46:18 -0600

Why do you think the equation names from -suest- are "model1_divided"
?  I would think they would be "model1_budgetday",
"model2_patroldays"....

See for example:

webuse rod93,clear
qui {
nbreg deaths age if cohort == 1
est store m1
nbreg deaths age if cohort == 2
est store m2
nbreg deaths age if cohort == 3
est store m3
suest m1 m2 m3
}
 test [m1_deaths = m2_deaths = m3_deaths], constant


Scott


On Wed, Feb 13, 2013 at 2:26 PM, Huaandrew <andrew0845@hotmail.com> wrote:
> Kept getting error r(111) "model1 not found" after running the following code
>
> use "test.dta"
>
> qui nbreg budgetdays divided logcasqtlagstd gallupnotstd defbudgstd astotdaysstd q1 q2 q3 ch1, nolog
> estimates store model1
>
> qui nbreg patroldays divided logcasqtlagstd gallupnotstd defbudgstd astotdaysstd q1 q2 q3 ch1, nolog
> estimates store model2
>
> qui nbreg firedays divided logcasqtlagstd gallupnotstd defbudgstd astotdaysstd q1 q2 q3 ch1,  nolog
> estimates store model3
>
> suest model1 model2 model3
> test [model1] = [model2] = [model3]
>
> If I use test [model1_divided=model2_divided] then get r(303) "equation model1_divided not found"
>
> Does anyone know the reason for the error?
>
> Thanks!
>
> Andrew
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index