Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Question on the 'new estout'


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: RE: Question on the 'new estout'
Date   Fri, 3 Dec 2004 00:59:04 -0000 (GMT)

Ben Jann wrote:

[...]

> For use with the new version, change the program to
>
>  program define _estadd_nagelkerke, eclass
>    ... [commands calculating nagelkerke] ...
>    ereturn scalar nagelkerke = `nagelkerke'
>  end
>
> (note that the name of the program starts with "estadd", not
> "estout"; see -help estadd-) and then type
>
>  estadd Balance_sheet Income_statement, stats(nagelkerke)

[...]

Following on from Scott Merryman's reply to my last post on calculating
the root mean square error, I tried the above by running the do-file

program define _estadd_rmse, eclass
sqrt(e(rss)/(e(N) - e(df_m) - e(df_a) -1))
ereturn scalar rmse = `rmse'
end

which ran successfuly. However, the next step wasn't so successful:

. estadd Con Lab LibDem, stats(rmse)
error executing _estadd_rmse
r(199);

What have I done wrong here? Thanks.

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps

*
*   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