Statalist


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

Re: st: Question on Wooldridge's Procedure 18.1


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: Question on Wooldridge's Procedure 18.1
Date   Thu, 7 Jan 2010 10:15:01 -0500

martin--
That older post uses the earlier (now obsolete) forms of the
user-written commands.  Of course, nothing is lost if you simply
ignore those commands:

sysuse auto, clear
treatreg pri wei, treat(for=mpg) r
ivreg pri wei (for=mpg), r
probit for wei mpg
predict ghat
ivreg pri wei (for=ghat), r
reg for wei ghat, r
predict vhat, resid
reg pri wei for vhat, r

or rewrite:

est clear
sysuse auto, clear
treatreg pri wei, treat(for=mpg) r
est sto treat
ivreg pri wei (for=mpg), r
est sto ivreg
probit for wei mpg
predict ghat
ivreg pri wei (for=ghat), r
est sto pr18_1
reg for wei ghat, r
predict vhat, resid
reg pri wei for vhat, r
est sto pr18_1cf
est table *, t eq(1)


On Thu, Jan 7, 2010 at 9:40 AM, Martin Weiss <[email protected]> wrote:
>
> <>
>
> " or e.g.
> http://www.stata.com/statalist/archive/2007-04/msg00415.html";
>
>
> Did some characters go missing at some point from the code in this post?
> "esto" should probably be "eststo"?
>
*
*   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