Statalist


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

st: AW: RE: AW: suest followed by hausman


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: RE: AW: suest followed by hausman
Date   Mon, 19 Oct 2009 18:28:15 +0200

<> 



BTW, -suest- also understands the new (and brilliant) -coeflegend- option,
so you can, for instance, specify - suest, coefl- on replay and get the
correct syntax to address all coefficients...


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Schlesinger,
Traci
Gesendet: Montag, 19. Oktober 2009 18:26
An: [email protected]
Betreff: st: RE: AW: suest followed by hausman

Thanks for your quick response, Martin.  This worked.

best,
traci


Traci Schlesinger, PhD
Assistant Professor
Department of Sociology
DePaul University
990 W Fullerton Ave, Ste 1100
Chicago, IL 60614
Phone: 773-325-8694
Fax: 773-325-7821



-----Original Message-----
From: [email protected] on behalf of Martin Weiss
Sent: Mon 10/19/2009 11:17 AM
To: [email protected]
Subject: st: AW: suest followed by hausman
 

<> 

Use the name of the dependent var instead of "mean". You have used a special
syntax that is only applicable to -regress-



*************
webuse lbw, clear
logit low age lwt  smoke ptl ht ui if race==2
est store a
logit low age lwt  smoke ptl ht ui if race==3
est store b
suest  a b
test [a_low]smoke=[b_low]smoke
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Schlesinger,
Traci
Gesendet: Montag, 19. Oktober 2009 18:15
An: [email protected]
Betreff: st: suest followed by hausman

dear stata users:

i am interested in finding out whether the affects of one variable (adj_red)
on an individual's likelihood of being sentenced to incarceration (incar)
varies depending on whether or not the individual is being sentenced in a
state that uses sentencing guidelines (guidelines).  as such, i am using
suest followed by a a hausman test.  however, currently my code works until
i get to the test line, when i get the error: "equation [a_mean] not found /
r(303);".  interestingly, if i run this same code using reg instead of
logistic, the code works. 

what am i doing wrong?  the code is below.

thanks in advance for any feedback!

traci



#delimit ;

logistic  incar adj_red black latino age agesq murder rape robbery assault
oviolent burglary theft MVT forgery fraud oproperty drugt odrug weapons
driving chg1att  cjstatus priarr priorfta priconv pripris county year if
guidelines == 1;

est store a;

logistic  incar adj_red black latino age agesq murder rape robbery assault
oviolent burglary theft MVT forgery fraud oproperty drugt odrug weapons
driving chg1att  cjstatus priarr priorfta priconv pripris county year if
guidelines == 2;

est store b;

suest a b;

test [a_mean]adj_red=[b_mean]adj_red;


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index