Open rcragun opened 1 year ago
It seems that MP
and AGGTEobj
objects have a tidy()
method. This was not easy to find, so it might still help to have a component that includes the matrix (as in MPobject$att_table
). This would also help for people who do not use tidyverse.
Yes, I agree with you. I'm going to mark this as an enhancement that we should work on.
Thank you!
Note that even with the tidy
method, it still does not seem possible to easily extract the overall confidence intervals from AGGTEobj
objects, so that might be the highest priority.
Hi, Thanks for the flag. It would be great if you could propose the improvements and make a pull request.
Hi,
I stumbled over the same issue and saw that with the tidy() function in R you can technically pull out estimates, standard errors and confidence intervals. The problem is though, that tidy() reports different conf.high and conf.low for the same object, than what the object itself reports when printed in the console. I believe it is due to difference in calculations for the confidence interval in the did package.
See my question on stackoverflow to the same issue and the response I got: https://stackoverflow.com/questions/76056729/why-is-the-confidence-interval-different-when-using-tidy-on-output-of-aggte/76064957#76064957
Problem
I do not see any way to extract the confidence intervals/bands from objects created by
att_gt
oraggte
. More generally, it would help to be able to extract the entire table of ATTs, SEs, and confidence interval limits.For example, I might get the following as part of the output of
aggte()
:It would be helpful to be able to extract these two matrices from the
AGGTEobj
object:Matrix 1
Matrix 2
I made up the names for the confidence interval columns.
Naming
I think the behavior should be similar to lm objects.
coef(summary(lmobject))
(orsummary(lmobject)$coefficients
) returns a matrix like the larger table above.The matrices above should not be called “coefficients”, though. Perhaps
att_table
andatt_table_overall
would be good names.Use case
I have a list of
AGGTEobj
objects and want to show confidence intervals for all of the ATTs in the same figure.