Hi,
I am trying to output a regression result using outreg. And after the
regression, I did 3 F-test, which I want outreg to output together
with my regression results.
But I can only output 2 statistics that I defined. Once I use addstat
to output more than 3 statistics, it is said 'too few quote' and
error. I am not sure whether it is the limit of the outreg command, or
there is something that I dont know.
Could anyone help me about the problem?
Please find the following commands that I used,
newey dep1 f1 f2 f3 f4 f5 f6, lag(3) t(date) force
test f1+f2 =0
local r1=r(F)
local p1=r(p)
test f3+f4 =0
local r2=r(F)
local p2=r(p)
test f5+f6 =0
outreg using test.xls, replace addstat("F test, f1+f2 = 0", `r1', /*
*/ "Prob>F, 1", `p1', "F test,f3+f4 = 0", /*
*/ `r2', "Prob>F,2", `p2', "F test, f5+f6 = 0", r(F), "Prob >F, HC", r(p))
Thanks,
Regards,
Xiaolu
*
* 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/