Merged
Conversation
- Add would_file_taxes_voluntarily input variable for tax units that file for reasons other than being required or seeking refundable credits - Update tax_unit_is_filer to use propensity variables from microdata: - required_to_file (income thresholds from IRC § 6012) - takes_up_eitc (refund-seeking behavior) - would_file_taxes_voluntarily (state requirements, documentation, habit) Closes #4286 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add tax_unit_is_required_to_file for rules-based filing requirement - Add eligible_for_refundable_credits to check EITC/CTC eligibility - Add would_file_if_eligible_for_refundable_credit propensity variable - Update tax_unit_is_filer to use three-part logic: 1. Required to file (income thresholds) 2. Eligible for refundable credits AND would file to claim them 3. Would file voluntarily (state requirements, habit, documentation) This separates the refundable credit eligibility check from the propensity to file, enabling policy reforms that change credit eligibility to affect filing behavior. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
3 tasks
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7333 +/- ##
============================================
+ Coverage 86.56% 100.00% +13.43%
============================================
Files 12 5 -7
Lines 134 63 -71
============================================
- Hits 116 63 -53
+ Misses 18 0 -18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Use 0 for exemption_amount when personal exemption is suspended (2018+) to match the old tax_unit_is_filer logic - Simplify eligible_for_refundable_credits: eitc + refundable_ctc > 0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactor
tax_unit_is_filerto use explicit propensity variables from microdata, enabling better calibration to SOI filer counts and policy reforms that affect filing incentives.Changes
New variables
tax_unit_is_required_to_file: Rules-based filing requirement from IRC § 6012 (income thresholds)eligible_for_refundable_credits: Whether tax unit would receive EITC or refundable CTCwould_file_if_eligible_for_refundable_credit: Input variable (~83% default) for propensity to file when eligible for creditswould_file_taxes_voluntarily: Input variable (default False) for propensity to file without requirement or credit eligibilityUpdated
tax_unit_is_filerNow uses three-part logic:
Motivation
This supports better calibration to SOI filer counts, especially for low-income filers who:
See #4283 and #4286 for background discussion.
Related PRs
Test plan
🤖 Generated with Claude Code