Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cps_stage1/stage1.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def main():
SYR = '2014' # Start year of CPS
EYR = 2029 # Last year in our extrapolation
EYR = 2030 # Last year in our extrapolation

# Read in state SOI estimates
soi_estimates = pd.read_csv(os.path.join(CUR_PATH, 'SOI_estimates.csv'),
Expand Down
48 changes: 24 additions & 24 deletions cps_stage1/stage_2_targets.csv
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029
Single,69579590,71145131,72265362,73510837,74658900,75667804,76558423,77462958,78332702,79209405,80093066,80990643,81902135,82813628,83745995,84678361
Joint,55128595,56368988,57256559,58243361,59152982,59952347,60657993,61374665,62063772,62758393,63458526,64169685,64891869,65614054,66352777,67091500
HH,22077498,22574242,22929689,23324877,23689155,24009279,24291871,24578879,24854847,25133024,25413408,25698208,25987423,26276638,26572477,26868315
SS_return,27401498,31684352,32736570,33818929,34953351,36139836,37386604,38614191,39891101,41154310,42384637,43664287,44875433,46007115,47097695,48141692
Dep_return,96916673,99911398,100735190,101549290,102373082,103187182,104001282,104805690,105610099,106414507,107209224,107984557,108759890,109525532,110281482,111018049
INTS,156367939,122311002,132881475,142982843,151739448,159839307,172129827,184514168,198790561,213442237,225498205,236741060,248374834,258976581,270047431,281649932
DIVS,254702232,388777487,393438538,453166211,468932279,490556499,505329228,515135264,521502820,525603526,530952273,539663089,552118028,571577279,596308866,621779089
SCHCI,374659000,438688223,426174612,479750850,506351638,530479678,552659491,573640395,595145822,618262282,644226150,670452280,696004024,723916120,752914726,782512787
SCHCL,57400238,64012745,62187418,70011070,73891326,77415701,80647334,83712507,86846560,90221694,94010110,97838706,101563981,105639398,109869796,114192033
CGNS,705007630,1249978528,1099106895,1442798115,1746162898,1756526510,1672066596,1640975760,1616864499,1620319036,1647884834,1685814245,1732344748,1789238864,1849587517,1915082726
Pension,663223262,776568117,800178866,845543337,883148096,927584054,972086335,1015129525,1059034905,1104001442,1150891327,1198709724,1248186179,1299453337,1355628348,1414854185
SCHEI,846331543,1091005992,1083389008,1096845680,1183594663,1220156186,1213385533,1211015805,1221256417,1244192001,1292432899,1341520129,1387137399,1453151259,1516202959,1572484007
SCHEL,166947674,160152904,159017659,161004337,173725750,179101465,178099779,177765883,179268412,182624061,189702642,196914781,203609383,213292348,222557944,230805159
SS,575126918,708326312,735759866,763768547,804602558,855673829,914681850,977255659,1042992666,1112870586,1186659370,1262403585,1341195973,1423381609,1510570850,1603051259
UCOMP,33288898,10925416,8545260,8518629,7859509,7393464,7696393,10106509,12213697,12816226,13308901,13801577,14350844,14870151,15446049,16021947
wage1,114320683,134555444,138499507,144810009,151269128,158528491,165902175,172749984,179449176,186537058,194105088,201878894,209709861,217929518,226560730,235500607
wage2,261995646,308368875,317407725,331869885,346672639,363309362,380208081,395901621,411254566,427498296,444842407,462658111,480604813,499442300,519222971,539711031
wage3,381259619,448742572,461896028,482941559,504482728,528692714,553283959,576121410,598463224,622101320,647340707,673266361,699382645,726795212,755580313,785394815
wage4,418567676,492654155,507094739,530199675,553848749,580427796,607425411,632497615,657025681,682976877,710686057,739148659,767820545,797915561,829517420,862249413
wage5,418379915,492433160,506867267,529961838,553600304,580167428,607152933,632213890,656730953,682670507,710367258,738817092,767476116,797557632,829145316,861862625
wage6,916618937,1078860489,1110483842,1161081207,1212870177,1271075480,1330197401,1385102876,1438816745,1495647120,1556327293,1618657381,1681445778,1747350680,1816555409,1888235010
wage7,840581301,989364191,1018364246,1064764334,1112257177,1165634090,1219851584,1270202404,1319460468,1371576509,1427222991,1484382519,1541962339,1602400134,1665864022,1731597480
wage8,3433224075,4040904736,4159350967,4348864936,4542842096,4760851825,4982294778,5187944900,5389131831,5601991723,5829271157,6062730394,6297906243,6544755054,6803963472,7072441594
,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030
Single,69579590,71145131,72265362,73510837,74658900,75667804,76558423,77462958,78332702,79209405,80093066,80990643,81902135,82813628,83745995,84678361,85631601
Joint,55128595,56368988,57256559,58243361,59152982,59952347,60657993,61374665,62063772,62758393,63458526,64169685,64891869,65614054,66352777,67091500,67846762
HH,22077498,22574242,22929689,23324877,23689155,24009279,24291871,24578879,24854847,25133024,25413408,25698208,25987423,26276638,26572477,26868315,27170777
SS_return,27401498,31684352,32736570,33818929,34953351,36139836,37386604,38614191,39891101,41154310,42384637,43664287,44875433,46007115,47097695,48141692,49089784
Dep_return,96916673,99911398,100735190,101549290,102373082,103187182,104001282,104805690,105610099,106414507,107209224,107984557,108759890,109525532,110281482,111018049,111744924
INTS,156367939,122311002,132881475,145672372,159854944,161793906,161324803,162888482,167032232,175272823,186249852,199290938,211909831,223934525,235740305,247123891,258304198
DIVS,254702232,388777487,393438538,461902498,501763397,520738713,540554547,561924064,582121951,602854713,626032616,650280269,673942106,698215229,724704261,753714845,787157248
SCHCI,374659000,438688223,426174612,485707928,512458580,534188802,557043001,576974860,597693503,618599475,639055856,661348067,685476106,711589839,738303025,765802996,794352012
SCHCL,57400238,64012745,62187418,70877814,74781030,77955263,81284477,84194669,87219662,90267614,93252427,96507020,100031395,103842771,107740247,111746783,115914041
CGNS,705007630,1250190030,1105310962,1501948255,1662337491,1786489334,1752014461,1745105387,1736433793,1705413457,1703721439,1719231607,1752014461,1798544965,1851984543,1910641178,1976136387
Pension,663223262,776568117,800178866,847930940,895152437,935675378,972285302,1013206177,1054922921,1098430367,1143396904,1190618400,1239962211,1291428336,1345812643,1402053976,1461346135
SCHEI,846331543,1091005992,1083389008,1048096983,1083981440,1088128465,1169037760,1224895642,1271951676,1330094653,1390691991,1438763623,1492505676,1552256683,1606168002,1671420164,1746828305
SCHEL,166947674,160152904,159017659,153842282,159117828,159718840,171588819,179785950,186697584,195245305,204126921,211188808,219068738,227850185,235763505,245329607,256414932
SS,575126918,708326312,735759866,763768547,804199969,856536519,908010378,966213222,1029764747,1097457185,1169578100,1244747189,1323424551,1406472878,1496652779,1592641461,1694784002
UCOMP,33288898,10925416,8545260,8518629,7859509,7393464,7476686,7995993,9174420,11474683,12679741,12899448,13638462,14077875,14540591,15089857,15529271
wage1,114320683,134555444,138499507,144958626,152263718,159717426,167056814,174590547,181495516,188240437,195076813,201958919,209126825,216969224,225234610,233465699,241662492
wage2,261995646,308368875,317407725,332210479,348952001,366034117,382854237,400119751,415944288,431402031,447069370,462841508,479268635,497241537,516183822,535047508,553832596
wage3,381259619,448742572,461896028,483437197,507799687,532657814,557134681,582259690,605287771,627782089,650581414,673533243,697438221,723592631,751157701,778608394,805944709
wage4,418567676,492654155,507094739,530743813,557490288,584780900,611652945,639236555,664518042,689213535,714243882,739441656,765685850,794399592,824662035,854798908,884810210
wage5,418379915,492433160,506867267,530505732,557240209,584518579,611378570,638949806,664219953,688904368,713923487,739109958,765342379,794043241,824292109,854415462,884413302
wage6,916618937,1078860489,1110483842,1162272812,1220844762,1280608317,1339455253,1399860441,1455224224,1509304742,1564118554,1619299014,1676771021,1739651081,1805922630,1871919193,1937640771
wage7,840581301,989364191,1018364246,1065857090,1119570235,1174376136,1228341455,1283735763,1334506873,1384101170,1434367932,1484970926,1537675374,1595339251,1656113279,1716635133,1776904812
wage8,3433224075,4040904736,4159350967,4353328127,4572711145,4796557355,5016970341,5243219807,5450586541,5653146762,5858453562,6065133651,6280396800,6515915972,6764138073,7011330206,7257492372
Binary file modified cps_stage2/cps_weights.csv.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions cps_stage2/stage2.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def main():
stage_2_targets, 2028, .50)
weights['WT2029'] = solve_lp_for_year(cps, stage_1_factors,
stage_2_targets, 2029, .50)
weights['WT2030'] = solve_lp_for_year(cps, stage_1_factors,
stage_2_targets, 2030, .50)

weights = weights.round(0).astype('int64')
weights.to_csv(os.path.join(CUR_PATH, 'cps_weights.csv.gz'),
Expand Down
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ dependencies:
- tqdm
- requests
- lxml
- xlrd
- pulp
32 changes: 16 additions & 16 deletions puf_stage1/CBO_baseline.csv
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029
GDP,14718.6,14418.7,14964.4,15517.9,16163.2,16800,17348.1,18036.7,18624.5,19485.4,20503.3,21478.1,22326.1,23145,23995.8,24906.8,25894.4,26909,27925.8,29018,30144.1,31299.1
TPY,12429.6,12087.5,12429.3,13202,13887.7,14166.9,14694.2,15458.5,15928.7,16831,17579.6,18464,19350.5,20206.6,21080.6,21976.6,22908.8,23861.6,24846.7,25866.4,26984.9,28164.2
Wages,6531.9,6251.4,6377.5,6633.2,6932.1,7124.7,7477.8,7854.8,8085.3,8453.9,8831,9254.4,9685.2,10084.4,10476,10889.8,11331.6,11784.9,12242.4,12722.3,13226.2,13747.8
SCHC,979.5,937.5,986.7,1068.1,1187.9,1253.5,1268.5,1336.8,1298.7,1462,1543,1616.6,1684.1,1748.1,1813.6,1884.1,1963.2,2043.1,2120.9,2206,2294.4,2384.6
SCHF,47,35.5,46,75.5,72.3,83.2,78.1,40,43.2,38.9,34.6,42.7,56.5,68.3,76.4,81.8,86.1,89.8,93,96.1,99.2,102.2
INTS,1361.6,1264.3,1195,1231.6,1255.9,1255.2,1302,1302.8,1415.3,1523,1616.2,1702.6,1833.4,1965.3,2117.4,2273.4,2401.9,2521.7,2645.6,2758.5,2876.4,3000
DIVS,805.4,553.7,544.6,682.2,832.7,824.5,815.5,951.1,962.5,1108.6,1147.2,1200.1,1236.2,1260.2,1275.8,1285.8,1298.9,1320.2,1350.7,1398.3,1458.8,1521.1
RENTS,262.1,333.7,402.8,485.3,533,595.8,610.8,659.6,707.4,730.2,762.2,799.3,806.5,804.8,800.3,801.6,813.5,827.7,844.9,865.6,888,911.5
CGNS,497.841,263.46,394.23,404.344,647.073,510.53,716.268,725.161,637.607,837,1013,1019,970,952,938,940,956,978,1005,1038,1073,1111
BOOK,1285.1,1397,1746.4,1816.6,2022.8,2106.9,2072.9,2088.1,2073.5,2099.3,2265.2,2335.3,2322.3,2317.8,2337.4,2381.3,2473.6,2567.5,2654.9,2781.1,2901.9,3009.5
RETS,142.5,140.5,142.9,145.4,144.9,146.6,148.3,147.8,149.7,149.9,151.7,152.9,154.2,155.6,156.9,158.5,160,161.6,163.2,164.7,166.3,168
SOCSEC,503,544.5,572.5,591.5,627.2,663.2,698.2,733.7,762.1,791.1,833.4,886.3,947.4,1012.2,1080.3,1152.7,1229.1,1307.6,1389.2,1474.3,1564.6,1660.4
CPIU,215.3,214.5,218.1,224.9,229.6,233,236.7,237,240.006,245.1,251.2,256.5,263.1,269.8,276.6,283.4,290.1,296.9,303.9,311,318.3,325.8
CPIM,364.1,375.6,388.4,400.3,414.9,425.1,435.3,446.8,463.7,475.3,484.7,490.4,460,466.7,473.5,480.3,487,493.8,500.8,507.9,515.2,522.7
UCOMP,51.1,131.2,138.9,107.2,83.6,62.2,43.8,39.9,31.2,31.1,28.7,27,28.1,36.9,44.6,46.8,48.6,50.4,52.4,54.3,56.4,58.5
,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030
GDP,14718.6,14418.7,14964.4,15517.9,16163.2,16800.0,17348.1,18036.7,18624.5,19519.4,20580.3,21440.0,22339.9,23251.4,24138.7,25035.5,25954.8,26888.1,27866.7,28923.6,30010.0,31135.2,32296.7
TPY,12429.6,12087.5,12429.3,13202.0,13887.7,14166.9,14694.2,15458.5,15928.7,16878.8,17819.2,18625.6,19354.1,20169.1,20999.7,21865.5,22760.4,23700.3,24682.1,25707.2,26789.0,27909.6,29089.8
Wages,6531.9,6251.4,6377.5,6633.2,6932.1,7124.7,7477.8,7854.8,8085.3,8462.1,8888.5,9324.1,9752.6,10192.3,10595.3,10988.8,11387.9,11789.6,12208.5,12666.4,13148.7,13628.9,14107.4
SCHC,979.5,937.5,986.7,1068.1,1187.9,1253.5,1268.5,1336.8,1298.7,1480.1,1561.6,1627.9,1697.5,1758.2,1821.4,1885.1,1947.4,2015.3,2088.9,2168.5,2249.9,2333.6,2420.6
SCHF,47.0,35.5,46.0,75.5,72.3,83.2,78.1,40.0,43.2,38.1,27.2,30.5,27.4,30.6,35.8,39.4,42.6,45.4,47.9,50.6,53.6,57.0,60.6
INTS,1361.6,1264.3,1195.0,1231.6,1255.9,1255.2,1302.0,1302.8,1415.3,1551.6,1702.7,1723.4,1718.3,1735.0,1779.1,1866.9,1983.8,2122.7,2257.1,2385.3,2510.9,2632.2,2751.4
DIVS,805.4,553.7,544.6,682.2,832.7,824.5,815.5,951.1,962.5,1130.0,1227.5,1273.9,1322.4,1374.7,1424.1,1474.8,1531.5,1590.8,1648.7,1708.1,1772.9,1843.9,1925.7
RENTS,262.1,333.7,402.8,485.3,533.0,595.8,610.8,659.6,707.4,718.8,756.8,776.0,799.1,836.9,876.8,903.4,914.8,925.4,946.1,973.8,1004.0,1036.5,1073.9
CGNS,498.0,264.0,394.0,404.0,647.0,511.0,716.0,725.0,641.0,871.0,964.0,1036.0,1016.0,1012.0,1007.0,989.0,988.0,997.0,1016.0,1043.0,1074.0,1108.0,1146.0
BOOK,1285.1,1397.0,1746.4,1816.6,2022.8,2106.9,2072.9,2088.1,2073.5,2006.0,2074.6,2082.6,2237.4,2344.3,2434.3,2545.7,2661.6,2753.6,2856.5,2970.9,3074.0,3198.9,3343.3
RETS,142.5,140.5,142.9,145.4,144.9,146.6,148.3,147.8,149.7,149.9,152.5,153.6,155.1,156.6,158.0,159.5,161.0,162.4,163.9,165.4,166.9,168.4,169.9
SOCSEC,503.0,544.5,572.5,591.5,627.2,663.2,698.2,733.7,762.1,791.1,833.0,887.2,940.5,1000.8,1066.6,1136.7,1211.4,1289.3,1370.8,1456.8,1550.2,1649.6,1755.4
CPIU,215.3,214.5,218.1,224.9,229.6,233.0,236.7,237.0,240.0,245.1,251.1,255.7,261.9,268.5,275.4,282.2,289.0,295.6,302.3,309.1,316.0,323.1,330.3
CPIM,364.1,375.6,388.4,400.3,414.9,425.1,435.3,446.8,463.7,475.3,484.7,498.4,511.6,470.1,477.0,483.8,490.6,497.2,503.9,510.7,517.6,524.7,531.9
UCOMP,51.1,131.2,138.9,107.2,83.6,62.2,43.8,39.9,31.2,31.1,28.7,27.0,27.3,29.2,33.5,41.9,46.3,47.1,49.8,51.4,53.1,55.1,56.7
Loading