I am having trouble exporting my estimation results for my paper. I am using Stata 14.0 MP. It seems that the esttab command couldn't export a continuous variable's coefficient when it's in multiple interaction terms and exporting with multiple specifications. I tried google it but couldn't find any similar questions.
I use the 1978 Automobile Data to replicate the problem:
The Code
Code:
use https://www.stata-press.com/data/r16/auto qui reg price c.mpg##rep78 gear_ratio eststo test1 qui reg price c.mpg##rep78 c.mpg##foreign gear_ratio eststo test2 qui reg price c.mpg##rep78 c.gear_ratio##foreign eststo test3 qui reg price c.mpg##rep78 c.mpg#foreign foreign gear_ratio eststo test4 local test test1 test2 test3 test4 esttab `test' using test.csv, replace
The Result
Code:
(1) | (2) | (3) | (4) | |
price | price | price | price | |
mpg | -204.1 | 0 | -380.6 | -324.2 |
(-0.35) | (.) | (-0.69) | (-0.57) |
.......
Does anyone know what’s the problem? Is there an easy way to solve it? Any help would be greatly appreciated
0 Response to esttab: Can't Export Continuous Variable's Coefficient when it's also in Another Interaction Term & Exporting with Multiple Specifications
Post a Comment