I wish to have finer control over how etable displays factor variables, specifically dummy variables. Let me demonstrate what is hanging me up.
I would like to get rid of the line "Car origin", so the table would look like:
I've figured out how to do so using collect and table. But my co-author is less familiar with Stata and I'd like to give her an option that leverages the simplicity of etable.
One solution I've discovered is to not add the "i." prefix. But, that doesn't work when using margins, especially if there are interactions. Also, it just seems (to me) better practice to be explicit in marking factor variables.
I've searched broadly for solutions, but hopefully someone knows the solution that has eluded me.
Thanks.
Code:
. sysuse auto
(1978 automobile data)
. qui regress price mpg i.foreign
. etable
---------------------------------
price
---------------------------------
Mileage (mpg) -294.196
(55.692)
Car origin
Foreign 1767.292
(700.158)
Intercept 11905.415
(1158.634)
Number of observations 74
---------------------------------
Code:
---------------------------------
price
---------------------------------
Mileage (mpg) -294.196
(55.692)
Foreign 1767.292
(700.158)
Intercept 11905.415
(1158.634)
Number of observations 74
---------------------------------
One solution I've discovered is to not add the "i." prefix. But, that doesn't work when using margins, especially if there are interactions. Also, it just seems (to me) better practice to be explicit in marking factor variables.
I've searched broadly for solutions, but hopefully someone knows the solution that has eluded me.
Thanks.

Comment