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

st: problem with use of outreg addstat

From   Xiaolu Wang <[email protected]>
To   [email protected]
Subject   st: problem with use of outreg addstat
Date   Thu, 10 Mar 2005 19:09:24 -0500


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



*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index