I do not think I have ever experience this issue but it persists across computers, Stata 17 and 18, after updating the estpost command, and with different numerical data formats and different datasets.
Basically, I would like to transfer the tabulation of a continuous variable that includes fractional values through esttab.
The command tabulate itself works fine but estpost inserts _missing_ where a regular decimal period would be, so esttab just perpetuates the error.
Anyone would be able to help?
Thanks so much!!!
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++
webuse auto
(1978 automobile data)
. tab gear_ratio if gear_ratio<2.5
Gear ratio | Freq. Percent Cum.
------------+-----------------------------------
2.19 | 1 7.69 7.69
2.24 | 1 7.69 15.38
2.26 | 1 7.69 23.08
2.28 | 1 7.69 30.77
2.41 | 3 23.08 53.85
2.43 | 1 7.69 61.54
2.47 | 5 38.46 100.00
------------+-----------------------------------
Total | 13 100.00
. estpost tabulate gear_ratio if gear_ratio <2.5
gear_ratio | e(b) e(pct) e(cumpct)
-------------+---------------------------------
2_mi~1900001 | 1 7.692308 7.692308
2_missing_24 | 1 7.692308 15.38462
2_missing_26 | 1 7.692308 23.07692
2_missing_28 | 1 7.692308 30.76923
2_mi~4100001 | 3 23.07692 53.84615
2_mi~4300001 | 1 7.692308 61.53846
2_missing_47 | 5 38.46154 100
-------------+---------------------------------
Total | 13 100
row labels saved in macro e(labels)
. esttab
----------------------------
(1)
gear_ratio
----------------------------
2_mi~1900001 1
2_missing_24 1
2_missing_26 1
2_missing_28 1
2_mi~4100001 3
2_mi~4300001 1
2_missing_47 5
Total 13
----------------------------
N 13
----------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001
Basically, I would like to transfer the tabulation of a continuous variable that includes fractional values through esttab.
The command tabulate itself works fine but estpost inserts _missing_ where a regular decimal period would be, so esttab just perpetuates the error.
Anyone would be able to help?
Thanks so much!!!
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++
webuse auto
(1978 automobile data)
. tab gear_ratio if gear_ratio<2.5
Gear ratio | Freq. Percent Cum.
------------+-----------------------------------
2.19 | 1 7.69 7.69
2.24 | 1 7.69 15.38
2.26 | 1 7.69 23.08
2.28 | 1 7.69 30.77
2.41 | 3 23.08 53.85
2.43 | 1 7.69 61.54
2.47 | 5 38.46 100.00
------------+-----------------------------------
Total | 13 100.00
. estpost tabulate gear_ratio if gear_ratio <2.5
gear_ratio | e(b) e(pct) e(cumpct)
-------------+---------------------------------
2_mi~1900001 | 1 7.692308 7.692308
2_missing_24 | 1 7.692308 15.38462
2_missing_26 | 1 7.692308 23.07692
2_missing_28 | 1 7.692308 30.76923
2_mi~4100001 | 3 23.07692 53.84615
2_mi~4300001 | 1 7.692308 61.53846
2_missing_47 | 5 38.46154 100
-------------+---------------------------------
Total | 13 100
row labels saved in macro e(labels)
. esttab
----------------------------
(1)
gear_ratio
----------------------------
2_mi~1900001 1
2_missing_24 1
2_missing_26 1
2_missing_28 1
2_mi~4100001 3
2_mi~4300001 1
2_missing_47 5
Total 13
----------------------------
N 13
----------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001

Comment