Hello,
I am using the new xthdidregress command to estimate the following model:
My aim is to plot these aggregated results using event_plot, which I can use to combine with other estimators. The problem I am having is to extract the the coefficient vector and the variance-covariance matrix of the aggregate estimators into two matrices. Does anyone knows how I could do it?
I was only able to extract the vector of coefficients, but I am struggling into creating a matrix aipw_V with the variance covariance. This is what I have done
thanks a lot in advance for your help
I am using the new xthdidregress command to estimate the following model:
Code:
webuse akc, clear xtset breed year xthdidregress aipw (registered best) (movie), group(breed) vce(cluster breed) controlg(never) basetime(common) estat aggregation, dynamic graph(ciopts(recast(rcap)))
I was only able to extract the vector of coefficients, but I am struggling into creating a matrix aipw_V with the variance covariance. This is what I have done
Code:
* Extract my coefficients matrix aipw_b = r(table)["b", 1 ...] * manually re-name them so that they can be used with event_plot matrix colnames aipw_b = F_6 F_5 F_4 F_3 F_2 L_0 L_1 L_2 L_3 L_4 L_5 L_6 matrix list aipw_b
thanks a lot in advance for your help
Comment