Dear listers,
I want to test whether the relationship of interest is significantly different between the subsamples with respectively var1 above or below its median, and likewise for var2 and var3.
Hence I generated the respective dummies and wrote the below code:
This does produce the estimates of interest, showing for each dummy first the sub- and then right to it the super-median estimations.
However, I would like to add to the bottom of the table the variable by which I have split and, more importantly,
add a formal test of whether the difference in the estimates on indepvar is significant.
Does someone know how to do this?
Thank you so much,
PM
I want to test whether the relationship of interest is significantly different between the subsamples with respectively var1 above or below its median, and likewise for var2 and var3.
Hence I generated the respective dummies and wrote the below code:
Code:
eststo clear
foreach var of varlist dummy1 dummy2 dummy3 {
eststo: reghdfe depvar indepvar if `var'==0
eststo: reghdfe depvar indepvar if `var'==1
}
esttab using "table"
However, I would like to add to the bottom of the table the variable by which I have split and, more importantly,
add a formal test of whether the difference in the estimates on indepvar is significant.
Does someone know how to do this?
Thank you so much,
PM

Comment