-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract confidence intervals (or table) from att_gt or aggte #170
Comments
It seems that |
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 |
Hi,
Thanks for the flag. It would be great if you could propose the
improvements and make a pull request.
…--
===============================
*Pedro H. C. Sant'Anna*
Department of Economics
Vanderbilt University
615-875-8448 (phone)
***@***.***
<https://email.vanderbilt.edu/owa/redir.aspx?SURL=R33SAibMcqASxYI7tVlx3_2Xx09NkN6m1ZKVuyK8lL42lUjfQp_SCG0AYQBpAGwAdABvADoAcABlAGQAcgBvAC4AaAAuAHMAYQBuAHQAYQBuAG4AYQBAAHYAYQBuAGQAZQByAGIAaQBsAHQALgBlAGQAdQA.&URL=mailto%3apedro.h.santanna%40vanderbilt.edu>
https://pedrohcgs.github.io
===============================
|
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: |
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.The text was updated successfully, but these errors were encountered: