Hello, could someone help me figure out how to achieve the following output using estout/esttab?
Basically, I would like the first column to include "regular" results from a regression model, and I'd like the second column to have "custom" values that I would like to define.
I tried a few different approaches. The one that came closest was to use use return repost and replace values in e(b) with my custom values (see below). The trouble is, I dont know how to show the std. errors and stars for the first column, but not for the second.
Any help? Thanks in advance!
------
Code so far:
est clear
eststo: reg price weight mpg
program define alterations, eclass
estimates restore est1
matrix m = e(b)
matrix m[1,1]=30
matrix m[1,2]=26
matrix m[1,3]=35
ereturn repost b=m
end
// change coeffs
alterations
eststo est2
eststo est3: reg price weight mpg
esttab est3 est2
Basically, I would like the first column to include "regular" results from a regression model, and I'd like the second column to have "custom" values that I would like to define.
I tried a few different approaches. The one that came closest was to use use return repost and replace values in e(b) with my custom values (see below). The trouble is, I dont know how to show the std. errors and stars for the first column, but not for the second.
Any help? Thanks in advance!
------
Code so far:
est clear
eststo: reg price weight mpg
program define alterations, eclass
estimates restore est1
matrix m = e(b)
matrix m[1,1]=30
matrix m[1,2]=26
matrix m[1,3]=35
ereturn repost b=m
end
// change coeffs
alterations
eststo est2
eststo est3: reg price weight mpg
esttab est3 est2
Comment