Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Write output to file


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: Write output to file
Date   Fri, 4 May 2007 11:23:27 -0400

The use of -yhat- instead of -yhat2- in the second example is a typo,
of course...

sysuse auto, clear
logit for mpg wei rep78
predict yhat
gen dirk=(yhat-for)/ sqrt(yhat*(1-yhat))
predict e1, dev
predict e2, resid
predict e3, rst
su e1 e3 e2 dirk

logit for mpg
predict yhat2
gen dirkres2=(yhat2-for)/ sqrt(yhat2*(1-yhat2))
predict res2, resid
su res2 dirkres2
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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