Skip to content

Add Gain statistics and weights for ATTE #229

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

Merged
merged 22 commits into from
Feb 1, 2024
Merged

Add Gain statistics and weights for ATTE #229

merged 22 commits into from
Feb 1, 2024

Conversation

SvenKlaassen
Copy link
Member

@SvenKlaassen SvenKlaassen commented Jan 29, 2024

Add the computation of gain statistics to utils as gain_statistics.

Adding the option to set binary weights for score="ATTE" in DoubleMLIRM model.

Further, added shapes to several attribute descriptions.

@SvenKlaassen SvenKlaassen changed the title Extend documentation Add Gain statistics and weights for ATTE. Jan 31, 2024
@SvenKlaassen SvenKlaassen changed the title Add Gain statistics and weights for ATTE. Add Gain statistics and weights for ATTE Jan 31, 2024
@@ -354,6 +354,7 @@ def psi(self):
Values of the score function after calling :meth:`fit`;
For models (e.g., PLR, IRM, PLIV, IIVM) with linear score (in the parameter)
:math:`\\psi(W; \\theta, \\eta) = \\psi_a(W; \\eta) \\theta + \\psi_b(W; \\eta)`.
The shape is ``(n_obs, n_rep, n_coefs)``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all the changes. I thought _predictions was a dictionary with keys corresponding to the learner names, so the shape info rather refers to the corresponding values?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great point. I will fix this.

Copy link
Member

@PhilippBach PhilippBach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes. I think the changes for the ATTE score (external predictions and also the new definition of the score) is really nice. I think moving the gain_statistics into a separate utils file makes sense. The code for the benchmarking in doubleml is now really concise

@SvenKlaassen SvenKlaassen merged commit eda1137 into main Feb 1, 2024
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

Successfully merging this pull request may close these issues.

2 participants