Skip to content
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

Extracting group-time metric values and sample sizes #19

Open
cadlaon opened this issue Nov 5, 2024 · 1 comment
Open

Extracting group-time metric values and sample sizes #19

cadlaon opened this issue Nov 5, 2024 · 1 comment

Comments

@cadlaon
Copy link

cadlaon commented Nov 5, 2024

I wasn't sure if this was available in the documentation, but is this possible with the current package?

  • Extracting the mean variable value of a chosen group-time? For example, in a very standard canonical DiD (one control, one treatment group, and one pre, one post period), how do I extract the mean value of the target metric of the control group in the pre-period?
  • Extracting the sample size of the chosen group-time? The ATTgt.fit() method removes some units where they were treated since first time or never treated, so is it possible to know what sample size the model is working with in each group after performing these removals?
@bernardodionisi
Copy link
Owner

Hi, you should be able to extract the info you are looking for with a bit of work.

The info should be stored in the private ATTgt attribute _result_dict. May be mistaking on which attribute it is since I have not worked on this codebase in a while.

The number of observations should be directly retrievable from within _result_dict. The mean you may need to calculate with the information you will find in that attribute.

Maybe at some point I will expose the information for easier retirval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants