Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Collect coefficients from separate regressions and plot in one graph

    I have a battery of outcomes that are related, the number of months employed after 1 month, after 2 months etc. up 72 months. I estimate DiD regressions using csdid on these outcomes and collect the main coefficient. The idea is to have a graph where the Y-Axis is the estimated ATT and the X-axis is how many months after the outcome is measured. So, I need to collected the coefficient, upper and lower CI for the different outcomes and then somehow link them together into a new dataset so that I can plot it. Is it kind of clear? Apologies, I cannot share data and it seems difficult to make up an MWE for this.

  • #2
    Okay, so I think I create a matrix with 72 rows and 4 columns (beta, ul, ll, time) and then loop over the outcomes to pass on the values, and then make a dataset out of the matrix.

    Comment

    Working...
    X