Skip to content

Commit

Permalink
Merge pull request #395 from andersonfrailey/gfbug
Browse files Browse the repository at this point in the history
Fix benefits growth rate bug
  • Loading branch information
andersonfrailey committed Jun 18, 2021
2 parents 4dd757a + 5040b26 commit bc45734
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion puf_stage1/benefit_growth_rates.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ YEAR,ssi_participation_growth,ssi_benefit_growth,ssi_average_benefit,snap_partic
2027,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856
2028,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856
2029,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856
2030,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856
2030,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856
2031,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856
2 changes: 1 addition & 1 deletion puf_stage1/growfactors.csv
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ YEAR,ATXPY,ASCHF,ABOOK,ACPIU,ACPIM,AWAGE,ASCHCI,ASCHCL,ASCHEI,ASCHEL,AINTS,ADIVS
2028,1.038383,1.02362,1.022127,1.024452,1.014546,1.02904,1.03136,1.031371,1.022205,1.022212,1.095794,1.028537,1.012199,1.037933,1.05698,1.045541,1.030942,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0
2029,1.037542,1.028855,1.019018,1.024521,1.014725,1.028278,1.02934,1.029383,1.018939,1.018956,1.085762,1.033534,1.018497,1.03772,1.058625,1.044504,1.031131,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0
2030,1.037758,1.030567,1.018617,1.023934,1.014512,1.027532,1.02892,1.028932,1.018695,1.018667,1.087659,1.038078,1.022205,1.040242,1.069383,1.044572,1.03133,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0
2031,1.040629,1.029454,1.020281,1.023375,1.014229,1.028783,1.03078,1.030773,1.020267,1.020252,1.079808,1.040456,1.025803,1.04464,1.122917,1.047226,1.03151,,,,,,,,
2031,1.040629,1.029454,1.020281,1.023375,1.014229,1.028783,1.03078,1.030773,1.020267,1.020252,1.079808,1.040456,1.025803,1.04464,1.122917,1.047226,1.03151,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0
2 changes: 2 additions & 0 deletions tests/test_growfactors.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ def test_growfactor_values(growfactors):
if fname != "YEAR":
assert growfactors[fname].min() >= min_value
assert growfactors[fname].max() <= max_value

assert growfactors.isnull().sum().sum() == 0

0 comments on commit bc45734

Please sign in to comment.