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

Re-enable cliff impacts #2211

Merged

Conversation

anth-volk
Copy link
Collaborator

@anth-volk anth-volk commented Nov 19, 2024

Description

Fixes #1843. To not crash, this requires the merging of PolicyEngine/policyengine-api#1982; to correctly calculate UK results, PolicyEngine/policyengine-uk#997 must also be merged. This PR will remain in draft until the merging of the relevant API changes and until I can capture some screenshots.

Changes

Re-enables cliff impacts. Also removes a hanging semicolon that created a floating semicolon on the cliff impacts output page. Most of this code merely un-comments code that was previously commented out as a result of #1099.

Screenshots

Screen Shot 2024-11-19 at 1 09 56 AM Screen Shot 2024-11-19 at 1 11 49 AM

Tests

N/A

@anth-volk anth-volk marked this pull request as ready for review November 19, 2024 14:26
@anth-volk
Copy link
Collaborator Author

Good to go now

@MaxGhenis
Copy link
Contributor

What does it say the baseline cliff rate and gap are, by CPS and ECPS?

@anth-volk
Copy link
Collaborator Author

At the moment, we don't actually permit the running of baseline sims, and thus I cannot run the cliff impacts, either. Is there another policy we can use?

Alternatively: should we be enabling baseline runs?

@MaxGhenis
Copy link
Contributor

Just hover over the bar chart

@anth-volk
Copy link
Collaborator Author

Here are screenshots of the requested four outputs:
Screen Shot 2024-11-19 at 11 21 10 PM
Screen Shot 2024-11-19 at 11 21 18 PM
Screen Shot 2024-11-19 at 11 33 37 PM
Screen Shot 2024-11-19 at 11 33 44 PM

@anth-volk
Copy link
Collaborator Author

This is using the MTR-based definition and a delta of $1,000

@MaxGhenis
Copy link
Contributor

Thanks. For posterity (data for 2024):

Dataset Cliff rate Cliff gap
CPS 3.5% $51.3bn
ECPS 4.3% $70.3bn

@MaxGhenis MaxGhenis merged commit ac0fef5 into PolicyEngine:master Nov 19, 2024
2 checks passed
@anth-volk anth-volk deleted the fix/1843-re-enable-cliffs-new branch November 19, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Re-enable cliff impacts
3 participants