Statalist


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

st: RE: Controling formats


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: Controling formats
Date   Thu, 8 Jan 2009 17:44:39 +0100

Line for the server...

In addition to Richard`s advice, you may want to keep this thing strictly
-esttab- and avoid the -stats- option altogether, so that -sfmt- allows you
to control the format of the scalars. As far as I can see, you must sneak in
the p-value for the F-test through the backdoor via -estadd-. Let`s
construct a nonsensical regression to get a p-value other than 0.0000...

***********
clear*
set obs 1000
g dependent=uniform()
g independent=uniform()

reg dep indep
estadd sca p=`=Ftail(e(df_m),e(df_r),e(F))'

esttab using example.txt, replace b(4) t(2) star(* 0.10 ** 0.05 *** 0.01)
sca(p r2_a N) sfmt(3)
!start example.txt
***********

HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Claude Francoeur
Sent: Wednesday, January 07, 2009 8:59 PM
To: [email protected] >> "[email protected]"
Subject: st: Controling formats

Hello,

I would like to control the formats of p r2_a and N in :

esttab using example.rtf, replace b(4) t(2) star(* 0.10 ** 0.05 *** 
0.01) stats(p r2_a N, star)

Also, is it possible to control where the stars are located? Presently, 
the stars are on the b coefficients and on the global p-value.

Thank you.

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

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