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

CBO April 2018 Update #180

Closed
wants to merge 2 commits into from
Closed
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
186 changes: 92 additions & 94 deletions puf_stage2/notebook/CLP_solver_16Years.ipynb

Large diffs are not rendered by default.

Binary file modified puf_stage2/puf_weights.csv.gz
Binary file not shown.
24 changes: 12 additions & 12 deletions puf_stage3/puf_ratios.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ INT2012,0.763440777504,0.918994815533,0.831211187581,0.813167737413,0.7014193274
INT2013,1.13248967651,0.777873803126,0.779069117444,0.775791376912,0.905210639652,0.873485013186,0.948766878902,0.897571225759,0.837283675736,0.854571960429,0.971180172891,1.01908827709,1.04377052721,1.05409661229,1.07487609906,0.961598483091,1.04121773053,0.960513633894,1.2131854162
INT2014,0.912183909158,0.879242622584,0.851325743899,0.786903718392,0.851849817151,0.87452107583,1.01051432167,0.867204902929,0.832663845048,1.01201506514,0.845006607979,1.04688506692,1.02732324812,0.941504640459,1.08323279943,1.15825164116,1.08255808314,1.05739154208,1.05884052087
INT2015,0.999187796727,0.993217655483,0.990002539147,0.977740213359,0.979185732834,0.982001661933,0.972061252876,0.981880268971,0.983322244424,0.984026649063,1.00578351886,1.01922388486,1.00825702989,0.996484529442,0.994015986114,0.987373508748,0.994440773692,1.01267013363,1.02722347183
INT2016,0.996023831602,0.997017481616,0.963898946063,0.979997233182,0.980347104551,0.979612507641,0.982635801961,0.993164383738,0.980298376387,0.987422530633,0.993388768975,1.03086973515,0.99771731007,0.991269158762,0.989764055952,0.993189475972,1.00399601947,1.00501759977,1.0354948668
INT2017,0.988056043765,0.984570170793,0.965289775264,0.970859548487,0.982983509497,0.971025615751,0.980818580398,0.980513664788,0.978875645651,0.983234949728,1.00480961379,1.0229714953,1.00487803597,0.995034647564,0.988069040069,0.985598239644,0.989300472659,1.04332520543,1.0627026483
INT2018,0.994484274156,0.998144880367,0.987509284036,0.967491559823,0.977104647798,0.980091052092,0.983062729401,0.993711274996,0.980772613176,0.995606749566,1.01257365885,1.01527138322,0.996048702273,0.994751525011,0.994887274819,0.985895174874,0.99432419117,1.02714372365,1.03989341613
INT2019,0.99974926615,0.991452980585,0.977891890741,0.97697349878,0.977559894086,0.980238231728,0.980922838618,0.983271526723,0.984123857951,0.999631769486,1.00820601035,1.00869760212,1.00125305865,0.99291651205,0.992860899926,0.993687503238,1.00141152194,1.02327241802,1.04621894186
INT2020,0.99095372349,0.998018561656,0.978858394153,0.982691229464,0.979364883314,0.983973470727,0.983227422031,0.981966346528,0.986349274892,0.996710064015,1.00729789609,1.01342024656,1.00204176069,0.996955295961,0.999426666308,0.987575983074,0.991105394008,1.02727425628,1.04363553252
INT2021,0.994603297569,1.00163890445,0.974155599988,0.981166247747,0.982554573911,0.980040496318,1.01873039347,0.983016742253,0.998908534734,1.00601341957,0.997912219208,1.00251091274,1.01211861613,0.993918758952,1.00522948444,0.988169351957,1.00149744861,1.00391944857,1.01330589721
INT2022,0.999799954806,0.990537140381,0.987225095242,0.984597780049,0.978612141905,0.981288915147,0.98451208453,0.994536692955,0.991346617365,1.00633278335,1.01157775425,1.00748920105,1.00113456501,0.998736047431,0.99102867703,0.988101144905,0.999261477082,1.00937931756,1.0207187327
INT2023,1.00035066482,0.995888155499,0.988995998618,0.977117069671,0.980428597938,0.986310398738,0.982977018638,0.993690211462,0.990046429032,0.999916204305,1.01474111209,1.00048032693,1.00327353648,1.00064589481,0.990493786772,0.989008808543,1.00776229266,1.01796885459,1.02083659039
INT2024,0.994715474095,0.992677183929,0.986576189878,0.976070410321,0.982646385079,0.983049078466,1.02442753402,0.985453472607,0.992920704982,1.00460805058,1.00123754654,1.00570330104,1.00320353306,0.998139031364,1.00119876471,0.991050340434,1.00055534489,1.02152253701,1.01696899159
INT2025,1.01002616032,0.997287224567,0.975535444222,0.979306658434,0.981460721259,0.977919509994,0.995295054337,1.00233514542,0.997489527492,1.00243344009,1.00836499951,0.9996877024,1.00068595975,1.00345274648,0.99016434594,0.993041202598,0.998999802323,1.0189879535,1.01465582432
INT2026,0.995515455125,0.996075483772,0.980684600825,0.980048782736,0.982525351371,0.982655130899,0.983824519362,0.987325511827,1.00773748444,1.0035655189,1.00300082924,1.00398035865,1.00403856758,0.998076619269,1.00057337113,0.990926033898,1.00839424736,1.01505756769,1.01996922366
INT2027,1.00239975283,1.00579061015,0.979508385219,0.980147780618,0.983752636374,0.986629696223,0.987159480221,1.01533213508,1.00205871712,0.99913349126,0.999178024788,1.00113932811,1.00247418607,1.00063282348,0.997291170331,0.998893596555,1.00828075584,1.00927854602,0.999454076302
INT2016,0.995928258675,0.996921813344,0.963806455662,0.979903198079,0.980253035876,0.979518509454,0.982498706835,0.993287299409,0.980204312388,0.987477932625,0.99332114107,1.03119245448,0.997606147925,0.991172970077,0.989669083679,0.993094175014,1.00389968157,1.00540568533,1.03539151073
INT2017,0.988152310822,0.984666098219,0.965383824186,0.970954140076,0.983079422165,0.971120223521,0.980864512797,0.980393768003,0.978971499265,0.983142659139,1.00490367781,1.02265602292,1.00495456188,0.995219802543,0.988166944544,0.985694267235,0.989396860962,1.04292401291,1.06281028975
INT2018,0.994485447412,0.998134435223,0.987498950189,0.967481435452,0.97709428385,0.980112236567,0.98314501543,0.993700000648,0.980763766361,0.995572062055,1.0125292941,1.01525382751,0.996060087846,0.994862239072,0.994875216503,0.985884857918,0.994306329797,1.02716476948,1.03988272507
INT2019,0.999677265165,0.99142346215,0.977862776059,0.976944411441,0.977530789288,0.98017760339,0.980893633696,0.983253425323,0.984092852471,1.00007994342,1.00818535718,1.00867441266,1.00129047524,0.992680517686,0.992831368773,0.993657918274,1.00138921628,1.02321102602,1.04609409722
INT2020,0.991059911765,0.998095065742,0.978933429498,0.982766558618,0.979437775413,0.984048898172,0.983302792287,0.98203150239,0.986424684366,0.995992624116,1.00737518928,1.01348898046,1.00206570467,0.997030344803,0.999503239198,0.987651686673,0.991181368158,1.02735225317,1.04376248013
INT2021,0.994520701853,1.00145425861,0.974038517602,0.981084664843,0.982475064403,0.979959007019,1.01864428413,0.982547507076,0.998825476578,1.00637226173,0.997845150772,1.00243144084,1.01201725598,0.994650213629,1.00513916433,0.988087186753,1.00141260207,1.00385327239,1.01327558658
INT2022,0.999857515303,0.990675596603,0.987295431425,0.984631454229,0.97864561137,0.98129945141,0.984508166304,0.994962768227,0.991380522361,1.00696230726,1.01106144134,1.00755597665,1.00118342612,0.997952265926,0.991033737284,0.988134938904,0.999147843946,1.00939644484,1.02070495211
INT2023,1.00028698687,0.99588960203,0.989001747625,0.977122749626,0.980434297143,0.986339274593,0.983021617841,0.993694356788,0.990273211351,0.999269086706,1.01528394138,1.00042200882,1.00328832982,1.00070162244,0.990521929596,0.989014557624,1.00791881817,1.01797477201,1.02088219742
INT2024,0.995266002448,0.992663592342,0.986617891616,0.976071826344,0.982647810642,0.983050504613,1.0244290202,0.985456519686,0.992697841004,1.00463826234,1.00124045281,1.00574011332,1.00293957757,0.99809139139,1.00122827299,0.991051778189,1.00055679644,1.02152812411,1.01696715559
INT2025,1.00961273097,0.99735479599,0.975545051793,0.979356277225,0.981510435242,0.977969058502,0.995345476516,1.00238593618,0.997542766663,1.00191753908,1.00841367725,0.999737599937,1.00099540269,1.00350292304,0.990199844564,0.993091517281,0.999032464248,1.01903564445,1.01470721119
INT2026,0.995372488308,0.996071442315,0.980649420845,0.980011827365,0.982490119321,0.98261988023,0.983789233366,0.987289973375,1.00770666077,1.0040132363,1.00297680367,1.00395165525,1.00400965092,0.998080876806,1.00053747769,0.990890486528,1.00837619562,1.01460620288,1.02001688561
INT2027,1.00240379468,1.00572510618,0.980589316899,0.98011883366,0.983721777946,0.986598747547,0.987127645971,1.01530036576,1.00202198771,0.999134723802,0.999132555344,1.00108698889,1.00246976749,1.00056172841,0.997259887226,0.998862263185,1.00824912801,1.00963908102,0.999343773046
2 changes: 1 addition & 1 deletion puf_stage3/stage3.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def adjustment(agi, var, var_name, target, weight, blowup):
# Read all necessary files
puf = pd.read_csv('../puf_data/cps-matched-puf.csv')
targets = pd.read_csv('stage3_targets.csv', index_col=0)
wght = pd.read_csv('../puf_stage2/puf_weights.csv')
wght = pd.read_csv('../puf_stage2/puf_weights.csv.gz')
bf = pd.read_csv('../stage1/growfactors.csv', index_col=0)

# Call adjustment function for each variable being adjusted
Expand Down
28 changes: 14 additions & 14 deletions 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
GDP,14718.6,14418.7,14964.4,15517.9,16163.2,16800,17348.1,18036.7,18569.1,19310.3,20117.9,20846.6,21565.5,22377.8,23262.2,24185.9,25149.5,26149.8,27191.3,28272.7
TPY,12429.6,12087.5,12429.3,13202,13887.7,14166.9,14694.2,15458.5,16011.6,16687.9,17450.2,18215.4,18986.1,19819.5,20686.9,21579.5,22509.8,23457.9,24479.1,25534.4
Wages,6531.9,6251.4,6377.5,6633.2,6932.1,7124.7,7477.8,7854.8,8189.2,8567.3,8947.9,9291.7,9616.1,9966,10350.8,10757.8,11180.8,11621.2,12079.7,12557.5
SCHC,979.5,937.5,986.7,1068.1,1187.9,1253.5,1268.5,1336.8,1389.7,1458.5,1507.7,1555,1600.5,1653.4,1714.9,1782.7,1855.2,1931.4,2011.2,2094.7
SCHF,47,35.5,46,75.5,72.3,83.2,78.1,40,27.8,22.8,34.2,44.7,54.3,63.9,71.3,76.4,80.7,84.9,86.9,86.7
INTS,1361.6,1264.3,1195,1231.6,1255.9,1255.2,1302,1302.8,1314.5,1367.3,1428.5,1530.7,1668,1833.8,1981,2113.6,2232.4,2339.2,2451.8,2567.3
DIVS,805.4,553.7,544.6,682.2,832.7,824.5,815.5,951.1,948.4,967.6,1018.1,1061.6,1096,1126.1,1156.6,1188.1,1225,1266,1311.1,1361.3
RENTS,262.1,333.7,402.8,485.3,533,595.8,610.8,659.6,704.7,737.4,757.1,768.9,769.2,770.3,774,779.2,790.3,802.8,819.2,840
CGNS,495.1,263.1,393.6,402.6,644.9,416,561,717,643,714,738,739,758,782,810,840,872,906,942,979
BOOK,1285.1,1397,1746.4,1816.6,2022.8,2106.9,2072.9,2088.1,2085.8,2093.9,2097.9,2117.7,2148.1,2192.6,2252.8,2334.8,2424,2517.1,2619.5,2724.6
RETS,142.5,140.5,142.9,145.4,144.9,146.6,148.3,147.8,149.7,151.7,153.3,155.1,156.7,158.3,159.9,161.4,163,164.6,166.2,167.9
GDP,14718.6,14418.7,14964.4,15517.9,16163.2,16800,17348.1,18036.7,18624.5,19386.8,20361.5,21368.8,22247.2,23078.6,23937.2,24856.8,25832.2,26849.3,27866.5,28957.1
TPY,12429.6,12087.5,12429.3,13202,13887.7,14166.9,14694.2,15458.5,15928.7,16416.9,17283.5,18327.3,19304.4,20206.4,21080.7,21948.5,22865.1,23813.4,24795.1,25806.9
Wages,6531.9,6251.4,6377.5,6633.2,6932.1,7124.7,7477.8,7854.8,8085.3,8339.6,8794.6,9303.6,9759.1,10159.8,10558.8,10972.9,11408.2,11866.8,12336.9,12837.1
SCHC,979.5,937.5,986.7,1068.1,1187.9,1253.5,1268.5,1336.8,1298.7,1350.5,1409.1,1479.5,1540.3,1600.3,1667.2,1742.8,1819.3,1896.3,1971.3,2048.8
SCHF,47,35.5,46,75.5,72.3,83.2,78.1,40,43.2,35.1,34.1,44.8,58.1,70.8,80.7,87.7,93.4,98.5,101,101.1
INTS,1361.6,1264.3,1195,1231.6,1255.9,1255.2,1302,1302.8,1415.3,1475.9,1551.4,1690.7,1864.6,2048.4,2193,2296.8,2373.8,2456.4,2540.1,2637.2
DIVS,805.4,553.7,544.6,682.2,832.7,824.5,815.5,951.1,962.5,965.3,1023.6,1113.3,1180.1,1222.4,1250.1,1272,1298.7,1332.3,1371.8,1424.6
RENTS,262.1,333.7,402.8,485.3,533,595.8,610.8,659.6,707.4,744.5,773.5,784.1,782.3,776.6,771,779.4,806.2,838,869.6,897.5
CGNS,495.1,263.1,393.6,402.6,644.9,416,561,717,637.607,828.347,912.277,954.531,914.233,896.793,896.675,909.374,930.921,958.384,988.727,1023.546
BOOK,1285.1,1397,1746.4,1816.6,2022.8,2106.9,2072.9,2088.1,2073.5,2195.3,2336.8,2431.2,2389.9,2369,2378.7,2434,2519.9,2606.4,2689.8,2794.6
RETS,142.5,140.5,142.9,145.4,144.9,146.6,148.3,147.8,149.7,151.6,153.3,155.1,156.7,158.3,159.9,161.4,163,164.6,166.2,167.8
SOCSEC,503,544.5,572.5,591.5,627.2,663.2,698.2,733.7,762.1,791.3,837.7,898.4,962.7,1027.8,1098,1172.8,1251.8,1333.5,1419.3,1510.6
CPIU,215.3,214.5,218.1,224.9,229.6,233,236.7,237,240,245.4,250.9,256.7,262.8,269.2,275.6,282.2,288.9,295.8,302.9,310.2
CPIM,364.1,375.6,388.4,400.3,414.9,425.1,409.9,414.2,419.8,430.4,435.9,441.7,447.8,454.2,460.6,467.2,473.9,480.8,487.9,495.2
UCOMP,51.1,131.2,138.9,107.2,83.6,62.2,43.8,39.9,31.2,31.1,30.4,32.9,38.9,43.3,46.1,48.5,50.6,52.8,55.1,57
CPIU,215.3,214.5,218.1,224.9,229.6,233,236.7,237,240.006,245.139,250.445,256.006,262.278,268.906,275.597,282.331,289.134,295.987,302.983,310.14
CPIM,364.1,375.6,388.4,400.3,414.9,425.1,409.9,414.2,419.8,430.4,440,445.5,451.8,458.4,465.1,471.9,478.7,485.5,492.5,499.7
UCOMP,51.1,131.2,138.9,107.2,83.6,62.2,43.8,39.9,31.2,31.1,28.7,26.3,28.8,35.1,42.2,45.8,48.9,51.6,54.3,56.4
Loading