Hi all,
I'm using Stata 17 and the user-written esttab command from SSC to create/export tables to rtf. I need to use the mean command with the over suffix because I'm working with complex survey data. My issue is getting the correct format for the names of the rows. Here's an illustration using the auto data.
This prints a table in the display with the row names determined by the labels for foreign, i.e. "Domestic" and "Foreign". However, when I utilize the esttab command,
the row names are "[email protected]" and "[email protected]". The question is how do I get the row names as "Domestic" and "Foreign"?
I recognize this can be done manually like so:
However, I'm dealing with a very large number of variables so need an automated solution. Thanks in advance.
I'm using Stata 17 and the user-written esttab command from SSC to create/export tables to rtf. I need to use the mean command with the over suffix because I'm working with complex survey data. My issue is getting the correct format for the names of the rows. Here's an illustration using the auto data.
Code:
sysuse auto, clear eststo: mean weight, over(foreign)
Code:
esttab, wide se nostar
I recognize this can be done manually like so:
Code:
esttab, wide se nostar varlabels([email protected] "Domestic" [email protected] "Foreign")
Comment