I am trying to plot an event study type of graph where I have several models with the two key variables in each. In each model, the response (dependent variable) is in a future time point (F1.var, F2.var, etc).
I aim to get a connected plot because it better indicates this dynamic property of the models. The best I could get so far, when using the recast(connected) option of coefplot (available in SSC), results in connected lines of the same model, while I would like to have connected lines of the same variable and across models.
I think the following example will clarify what I mean and aim.

What I would like to get is the following. (Note: the connected lines were added by hand.)

- I am also aware of the gen() option, with which I could genearte the necessary variables and flexibly recreate the plot I want, but I am wondering if I am not missing a more straightforward alternative.
- I am using version "1.8.6 22feb2023 Ben Jann" of coefplot.
I aim to get a connected plot because it better indicates this dynamic property of the models. The best I could get so far, when using the recast(connected) option of coefplot (available in SSC), results in connected lines of the same model, while I would like to have connected lines of the same variable and across models.
I think the following example will clarify what I mean and aim.
Code:
sysuse auto, clear reg trunk weight price if rep78==3 est sto m1 reg trunk weight price if rep78==4 est sto m2 reg trunk weight price if rep78==5 est sto m3
Code:
coefplot m?, drop(_cons) vertical recast(connected)
What I would like to get is the following. (Note: the connected lines were added by hand.)
- I am also aware of the gen() option, with which I could genearte the necessary variables and flexibly recreate the plot I want, but I am wondering if I am not missing a more straightforward alternative.
- I am using version "1.8.6 22feb2023 Ben Jann" of coefplot.
Comment