Dear Statalist,

I am using esttab (wrapper for estout) from SSC in Stata 16.1.

I am trying to export regression tables in which there are various models (columns) with different dependent variables (but the same independent variables). Is it possible to set different numerical display formats for the point estimate of the same coefficient in the various models?

Here is a simple example that illustrates my question: Assume that I try to assess if the car type (domestic/foreign) affects the price and the repair record of a car:

Code:
sysuse auto, clear
qui eststo: reg price foreign
qui eststo: reg rep78 foreign
 
esttab, b(%9.3f) se(%9.3f) nocons title("(1) basic output using esttab")          
eststo clear
I uploaded the output (1) as well as the desired output (2) as attachment.

I am aware that you can set different numerical display formats for different point estimates (b(fmt)). Is it also possible to change the display format for the same variable but another model? As in my example: three decimal places in model (1) and only one decimal place in model (2).

Or are there any other user-written commands (e.g., outreg) that may solve this problem?

Thanks for any advice!
Patrick


Array