Statalist


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

Re: st: Can I produce a regression output with -outreg2- after -xtoverid2, noisily- ? and temporary names query.


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: Can I produce a regression output with -outreg2- after -xtoverid2, noisily- ? and temporary names query.
Date   Wed, 28 Oct 2009 09:00:00 -0400

Kelvin Tan <[email protected]> :
Note that -xtoverid2- is merely replaying results you already have
when you specify the -noisily- option.  You can add the statistics
produced by -xtoverid2- like so:

webuse abdata, clear
xtivreg ys cap (k=emp  wage), re
est sto re
xtoverid2, cl(id)
estadd scalar estat=r(estat)
estadd scalar estatp=r(estatp)
estadd scalar j=r(j)
estadd scalar jp=r(jp)
esttab re, scal(estat estatp j jp)

if you have -estout- and the other packages installed.
Probably a similar approach works with -outreg2-.

On Wed, Oct 28, 2009 at 4:28 AM, Kelvin Tan <[email protected]> wrote:
> Dear All,
>
> I would like to know if I can produce a regression output with -outreg2-
> in LaTeX after-xtoverid2, noisily cl(id)- command. When I ran the
> following commands, I only managed to get the "Results 1" from -
> xtivreg, re -  but not "Result 2" from -xtoverid, noisily cl(id)-. I
> would also like to know if there is a command that I can use to change
> the temporary names to my variable label names after xtoverid. Thanks in
> advance.
>
> Commands:
> net install xtoverid2,
> from(http://www-personal.umich.edu/~nicholsa/stata)
> webuse abdata, clear
> xtivreg ys (k =  emp  wage  cap), re
> xtoverid2, noisily cl(id)
>
> outreg2 using myfile, tex bdec(3) tdec(2) alpha(0.001, 0.01, 0.05) label
> ctitle(test)  adds("Endogeneity Pvalue", `r(estatp)', "FE vs RE",
> `r(j)',"FE vs RE pvalue", `r(jp)' )

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