Hello all, could someone help with the following, please?
Suppose I run two regressions as follows:
I want then to plot these two estimates using coefplot. However, variables x1_1 and x1_2 should be considered the same regressor, likewise for x2_1 and x2_2. That is, my ideal graph would have labels x1 and x2 on the y axis, with 2 models associated to each.
How can I do that? The estimation procedure cannot be altered, as it is ran in a for loop beforehand and all variables belong to the same dataset.
I tried using something like
in the coefplot call, with no results
Suppose I run two regressions as follows:
Code:
eststo m1: reghdfe y x1_1 x2_1 eststo m2: reghdfe y x1_2 x2_2
How can I do that? The estimation procedure cannot be altered, as it is ran in a for loop beforehand and all variables belong to the same dataset.
I tried using something like
Code:
rename(x1_* ="x1" x2_* ="x2", regex) ///
Comment