Dear all,

for a graph, I want to organize the legend as follows:

symb group1: estimate (se)
symb group2: estimate (se)

I tried to include tabs in "Word-tyle" etc. to align the standard errors and everything. But it does not work. Do you have any suggestions?

Below, a MWE:

sysuse auto.dta, clear

reg price trunk if foreign == 0
mat v = e(V)
local b1: di %5.2f _b[trunk]
local v1: di %5.2f sqrt(v[1,1])

reg price trunk if foreign == 1
mat v = e(V)
local b2: di %5.2f _b[trunk]
local v2: di %5.2f sqrt(v[1,1])

twoway (lfit price trunk if foreign == 0, lcolor(black)) (lfit price trunk if foreign == 1, lcolor(red)), legend(col(1) lab(1 "Not foreign: `b1' (`v1')") lab(2 "Foreign: `b2' (`v2')"))
I would like to have the estimates grouped in one column and thestandard errors as well.

Any help is highly appreciated.

Best Daniel