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

R�p. : st: problem with use of outreg addstat

From   "Herve STOLOWY" <[email protected]>
To   <[email protected]>
Subject   R�p. : st: problem with use of outreg addstat
Date   Fri, 11 Mar 2005 07:23:34 +0100

Dear Xiaolu:

Have you tried -estout- instead of -outreg-? It is a very flexible command and you can add many customized statistics combining -estout- with -estadd-.

Best regards

Herv� Stolowy

Coordinateur du D�partement/Head of Department
HEC Paris
D�partement Comptabilit� Contr�le de gestion / Dept of Accounting and Management Control
1, rue de la Liberation
78351 - Jouy-en-Josas
Tel: +33 1 39 67 94 42 - Fax: +33 1 39 67 70 86
[email protected]

>>> [email protected] 03/11 1:09 am >>>

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:

*   For searches and help try:

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