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 on April 23, and its replacement, statalist.org is already up and running.


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

Antwort: st: poisson gof in table - estout command


From   Richard Ochmann <rochmann@diw.de>
To   statalist@hsphsun2.harvard.edu
Subject   Antwort: st: poisson gof in table - estout command
Date   Wed, 20 Oct 2010 10:58:19 +0200

...
this adds the chi2-statistic:

***
webuse dollhill3
tab agecat, gen(agecat)
eststo poi1: poisson deaths smokes agecat1 agecat2 agecat3, 
exposure(pyears)
estat gof
scalar gof = r(chi2)
estadd scalar gofchi2=gof: poi1
esttab poi1, stat(gofchi2)
***

best, rich

owner-statalist@hsphsun2.harvard.edu schrieb am 20.10.2010 10:14:34:

> Dear listserv users,
> 
> I'm trying to incorporate the goodness-of-fit measure (estat gof) that
> is run as a postestimation after a Poisson regression into the output
> table using the 'estout' command. Simply including 'gof' (or
> variations) of the goodness-of-fit measure in the 'stats' sub-command
> does not work - it just shows as 'poiss_g' in the table. I have tried
> to store it beforehand but this also didn't work. I apologise
> beforehand if the answer is obvious but I''m new to Stata and have not
> found any help on this topic.
> 
> Many thanks in advance,
> 
> Uta
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index