[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Problem with outreg2

From   "Mentzakis, Emmanouil" <[email protected]>
To   <[email protected]>
Subject   st: RE: Problem with outreg2
Date   Wed, 16 Jan 2008 05:26:45 -0000

Use e(F) not r(F) and you will get the F statistic value. However, it seems that -regress- doesn't save the p-value. Have a look at the bottom of -help regress- to see which scalars are saved.
Probably there is a way to get it but i am not sure how.


From: [email protected] on behalf of Nuno
Sent: Tue 1/15/2008 10:57 PM
To: [email protected]
Subject: st: Problem with outreg2

Hi everyone,

I'm having a strage problem using -outreg2- and I was wondering if anyone
could give me a hand. I'm trying to output the result of a equation to a xml
file. I've used the following syntax, as described in outreg2 help file
(example 6):

sysuse auto
regress mpg foreign weight length
test foreign weight length
outreg2 using auto5, addstat(Adjusted R-squared, e(r2_a), F test,r(F),Prob >
F, r(p))  tstat excel replace

I obtain the following output:

foreign -1.708
weight  -0.00437***
length  -0.0827
Constant        50.54***
Observations    74
R-squared       0.67
Adjusted R-squared      0.659
F test 
Prob > F       

Although I'm able to get the "Adjusted R-squared" additional statistic in
the output file, the "F test" (r(F)) and "Prob>F" (r(p)) do not appear in
the output. If I use e(F), I'm able to get the F-stat, however I'm still
unable to input the probability of the F-Stat using the r(p). This is
strange as I can still access the values on r()... Any idea?



*   For searches and help try:


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