Closed fredericky123 closed 10 months ago
Option rename()
operates at the level of individual coefficients, not variables. You need to rename each coefficient individually. In your case you could type
esttab, rename(altmpg mpg c.weight#c.altmpg c.weight#c.mpg)
ben
Thanks Ben! Is that possible to use the option "varlabels" to rename each variables and stack the variables with the same label to one cell?
Nope. varlabels()
only assigns labels, it does not affect how results will be arranged.
I see. I have a list of variables to be renamed when output about 10 models into a table. Look forward an option that can make "rename" more efficiently. Thanks!
In the example, the interaction term did't be matched, how to set all coefficients of "mpg" and "altmpg" be matched? If I have ten models, I want the alternative "mpg" (inbckuding its interction terms) to be output in the same cell, how to set this? In other way, can we rename a list of varlables in a batch so that the list of varables will be renamed (including the single term and interaction term)