Ben Jann replied:
> Display formats for coefficients, standard errors etc. may be specified
> within the -cells- option, e.g.
>
> . estout ... , cells(b(fmt(%9.3f)) ... )
Thanks for this: now I've got what I want (see below). I thought it might
have been the -fmt- option, but wasn't sure how to use it properly. Now I
know!
>> ... and even more so with no line-breaks!
>
> What do you mean here?
Let me show you with some of my own data:
. estout con lab ldm, stats(F r2_a rmse N) cells("b(star)" b(fmt(%9.2f))
t(par)) varwidth(30) modelwidth(10) label
con lab ldm
b/t b/t b/t
Con vote at ED local electio~ -0.24
(-1.05)
ed4 3.05 -1.12
(1.03) (-0.26)
ed5 6.22 -4.70 7.22
(2.25) (-1.09) (4.75)
ed6 5.40 -5.86 2.81
(2.14) (-1.51) (2.61)
ed7 0.08 7.82 -2.37
(0.03) (2.15) (-1.37)
ed8 -3.70 9.13 2.06
(-1.45) (2.49) (1.08)
ed9 -1.66 4.64 0.82
(-0.62) (1.31) (0.51)
ed10 1.57 8.64 -4.88
(0.60) (2.66) (-3.15)
ed11 -8.23 21.15 -3.73
(-3.67) (6.37) (-1.78)
ed12 -3.51 16.33 0.22
(-1.24) (4.02) (0.13)
ed13 5.12 1.43 -1.81
(1.73) (0.43) (-1.22)
Ch in turnout (%) in English~s 0.24 -0.07 0.02
(3.59) (-1.22) (0.38)
Ch in Con vote (%) at previo~G -0.20 -0.08 -0.02
(-1.08) (-0.31) (-0.14)
Ch in Lab vote (%) at previo~G 0.01 -0.45 0.21
(0.05) (-1.98) (1.39)
Ch in Lib Dem vote (%) at pr~o 0.10 -0.01 0.11
(0.59) (-0.04) (0.72)
Con-Lab margin at last GE, % 0.20 -0.42
(4.92) (-3.93)
Con-LibDem margin at last GE~% 0.27 -0.02
(3.45) (-0.47)
Con finishing position at la~g -0.25
(-0.24)
Party competition index at E~i -9.81 -7.70 0.87
(-12.98) (-5.58) (1.16)
Social class balance ([class~1 0.07 -0.28 0.04
(1.85) (-4.71) (1.23)
Lab vote at ED local electio~ -0.76
(-3.93)
Lab-LibDem margin at last GE~% 0.28 -0.21
(4.12) (-3.82)
Lab finishing position at la~g 1.17
(0.80)
Lib Dem vote at ED local ele~o -0.04
(-0.20)
ed3 -4.15
(-1.29)
Lib-Dem finishing position a~a -0.80
(-0.84)
_cons 69.85 70.42 25.36
(8.30) (7.68) (3.50)
F 58.18 44.13 28.40
r2_a
rmse
N 1842.00 1842.00 1842.00
Now that I've shaved off most of the coefficients' digits, this output
looks a lot neater. However, if you left the -fmt- option off and, for
some reason, you wanted to show the coefficients as is, then (to -sysuse
auto-):
. estout auto, stats(F r2_a rmse N) cells("b(star)" t(par)) varwidth(30)
modelwidth(10) label
auto
b/t
Mileage (mpg) -21.80518
(-.2818667)
Repair Record 1978 184.7935
(.5569557)
Headroom (in.) -635.4921
(-1.659143)
Trunk space (cu. ft.) 71.49929
(.7522273)
Weight (lbs.) 4.521161**
(3.202124)
Length (in.) -76.49101
(-1.8932)
Turn Circle (ft.) -114.2777
(-.9250453)
Displacement (cu. in.) 11.54012
(1.37738)
Gear Ratio -318.6479
(-.2834088)
Car type 3334.848***
(3.48387)
_cons 9789.494
(1.458899)
F 8.658513
r2_a .5296889
rmse 1997.329
N 69
looks a lot messier without inserting line breaks in between rows. At
least that's what I think, anyway. However, it's your call. :) Ta.
CLIVE NICHOLAS |t: 0(044)191 222 5969
Politics |e: [email protected]
Newcastle University |http://www.ncl.ac.uk/geps
*
* 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/