diff --git a/Admissible-EOS.pdf b/Admissible-EOS.pdf deleted file mode 100644 index 2733d56..0000000 Binary files a/Admissible-EOS.pdf and /dev/null differ diff --git a/CES0.5-model-data.pdf b/CES0.5-model-data.pdf deleted file mode 100644 index eb1b916..0000000 Binary files a/CES0.5-model-data.pdf and /dev/null differ diff --git a/CES2-model-data.pdf b/CES2-model-data.pdf deleted file mode 100644 index 940804d..0000000 Binary files a/CES2-model-data.pdf and /dev/null differ diff --git a/Makefile b/Makefile index 049ad25..5fb5127 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ TABLES = $(CES) baseline china_1972 no_china no_io_linkages labor_adjustment tra # default number of Julia threads to use. otherwise `make tables PROCS=12` PROCS = 2 -tables: $(foreach table,$(TABLES),experiments/$(table)/output_table.csv) +tables: $(foreach table,1 2 3 4left 4right 5left 5center 5right 6left 6right 7 8left 8right,output/table$(table).csv) ces_tables: $(foreach table,$(CES),experiments/$(table)/output_table.csv) experiments/baseline/output_table.csv # this takes too long to run, only run if explicitly asked `make S500` @@ -48,3 +48,31 @@ template: scenario_template.jl # install the Julia package dependencies install: install.jl julia install.jl + +# copy tables to match the order in the paper +output/table1.csv: experiments/baseline/output_table.csv + cp $< $@ +output/table2.csv: output/volatility_by_decade.csv + cp $< $@ +output/table3.csv: experiments/trade_imbalance/output_table.csv + cp $< $@ +output/table4left.csv: experiments/theta2/output_table.csv + cp $< $@ +output/table4right.csv: experiments/theta8/output_table.csv + cp $< $@ +output/table5left.csv: experiments/rho0005/output_table.csv + cp $< $@ +output/table5center.csv: experiments/labor_adjustment/output_table.csv + cp $< $@ +output/table5right.csv: experiments/rho002/output_table.csv + cp $< $@ +output/table6left.csv: experiments/CES0.5/output_table.csv + cp $< $@ +output/table6right.csv: experiments/CES1.5/output_table.csv + cp $< $@ +output/table7.csv: experiments/no_io_linkages/output_table.csv + cp $< $@ +output/table8left.csv: experiments/no_china/output_table.csv + cp $< $@ +output/table8right.csv: experiments/china_1972/output_table.csv + cp $< $@ diff --git a/README.md b/README.md index a2dc0c7..b090cf1 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ -# Replication code for Caselli, Koren, Lisicky and Tenreyro. 2019. "Diversification Through Trade." The Quarterly Journal of Economics +# Replication Data for: 'Diversification Through Trade' ## Citation and license Please cite as - Caselli, Francesco, Miklós Koren, Milan Lisicky, Silvana Tenreyro. 2019. "Replication Package for Diversification Through Trade." The Quarterly Journal of Economics. + Caselli, Francesco; Koren, Miklós; Lisicky, Milan; Tenreyro, Silvana, 2019, "Replication Data for: 'Diversification Through Trade'", The Quarterly Journal of Economics. The software provided here (`.jl` and `.ipynb` files) is licensed under licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/). To use the data provided in the `data` folder, please check the license terms of the original data vendors. ## Data Data are from the following sources. - EU Klems Database (March 2008) -- UN National Accounts (2017) +- UN National Accounts (2012) - UNIDO INDTSTAT2 - Penn World Table 7.1 - World Development Indicators (October 2015) @@ -33,13 +33,13 @@ estimation. The details are described in the Appendix of Caselli, Koren, Lisicky ## Requirements The code runs Julia 0.6 on Mac OS X and Linux. (We have not tested it on Windows.) The necessary Julia packages are installed by `install.jl` or `make install`. -The `Makefile` runs all the necessary computations in the correct order. If you want to reproduce the tables in our paper, simply run `make` or `make tables`. +## Workflow +The `Makefile` runs all the necessary computations in the correct order. If you want to reproduce the tables in our paper, run `make` or `make tables`. Both Julia and Make can run in parallel. Computing the equilibrium for a given set of parameters takes about 1 minute on a single 3.8GHz CPU core. Each period's equilibrium can be computed in parallel (in Julia) and each scenario can be computed in parallel (in Make). With 44 scenarios (see below) and 36 time periods, total run time should be about 1600 minutes. The Makefile is set to run 10 Julia threads in parallel (`PROCS = -p10`). If you have fewer cores, set `PROCS` accordingly. You can then run Make jobs in parallel with `make -j4 tables`. To run the code in an AWS EC2 instance, follow the steps in `notebooks/aws-recipe.md`. You need to launch an instance from an EC2 image with Julia 0.6 preinstalled. -## Workflow The core logic is in two files. - `equilibrium.jl` calculates the equilibrium prices and quantities given a set of parameters. - `calibrate_params.jl` calibrates parameters to match a set of data moments. @@ -52,8 +52,8 @@ The `actual` scenario does not change any of the calibrated parameters. The `kap The results of each run are saved in `results.jld2` (a JLD2 Julia file format) in the _scenario_ folder, such as `experiments/CES2/kappa1972/results.jld2`. Most of our tables require comparisons of four scenarios (with and without trade cost changes, with and without sectoral shocks). These tables are saved in the _experiment_ folder, such as `experiments/CES2/output_table.csv`. -## Technical details -The calibration algorithm is described in Section [] in the paper. The equilibrium solution algorithm is described in Section []. The basic outline of the equilibrium solution can be described by four nested loops. +### Technical details +The calibration algorithm is described in Section III in the paper. The equilibrium solution algorithm is described in Section II.B. The basic outline of the equilibrium solution can be described by four nested loops. ### Algorithm - The __outer loop__ solves for equilibrium labor shares, given expected wages. Expectations are taken over `S` possible realizations of future productivity shocks. @@ -70,11 +70,32 @@ R_nt = sum(w_njt .* L_njt ./ beta_j, 3) ``` where the summation is across the third, j, dimension. +## Output +Tables and figured are saved in the `output` folder. + +| File | Exhibit | Script | +--------------------------- +output/Figure2.pdf | Figure 2 | notebooks/Create Figure 2.ipynb +output/table1.csv | Table 1 | experiments/baseline +output/table2.csv | Table 2 | notebooks/Volatility by decade.ipynb +output/table3.csv | Table 3 | experiments/trade_imbalance +output/table4left.csv | Table 4, left panel | experiments/theta2 +output/table4right.csv | Table 4, right panel | experiments/theta8 +output/table5left.csv | Table 5, left panel | experiments/rho0005 +output/table5center.csv | Table 5, center panel | experiments/labor_adjustment +output/table5right.csv | Table 5, right panel | experiments/rho002 +output/table6left.csv | Table 6, left panel | experiments/CES0.5 +output/table6right.csv | Table 6, right panel | experiments/CES1.5 +output/table7.csv | Table 7 | experiments/no_io_linkages +output/table8left.csv | Table 8, left panel | experiments/no_china +output/table8right.csv | Table 8, right panel | experiments/china_1972 +output/trade_share.pdf | Supplementary figure | notebooks/Compare scenarios.ipynb + ## References - EU KLEMS Database, March 2008. Marcel Timmer, Mary O'Mahony & Bart van Ark, The EU KLEMS Growth and Productivity Accounts: An Overview, University of Groningen & University of Birmingham. http://www.euklems.net/euk08i.shtml - Julia: A Fresh Approach to Numerical Computing. Jeff Bezanson, Alan Edelman, Stefan Karpinski and Viral B. Shah (2017) SIAM Review, 59: 65–98. doi: 10.1137/141000671. url: https://julialang.org/research/julia-fresh-approach-BEKS.pdf. - Penn World Table 7.1, 2012. Alan Heston, Robert Summers and Bettina Aten, Penn World Table Version 7.1 Center for International Comparisons of Production, Income and Prices at the University of Pennsylvania, November 2012. https://www.rug.nl/ggdc/productivity/pwt/pwt-releases/pwt-7.1 - UN Comtrade, 2015. "United Nations Commodity Trade Statistics Database." United Nations Staistics Division. https://comtrade.un.org/ -- UN National Accounts, 2017. "National Accounts Official Country Data. Table 2.1 Value added by industries at current prices (ISIC Rev. 3)." United Nations Statistics Division. http://data.un.org/Data.aspx?d=SNA&f=group_code%3a201 +- UN National Accounts, 2012. "National Accounts Official Country Data. Table 2.1 Value added by industries at current prices (ISIC Rev. 3)." United Nations Statistics Division. http://data.un.org/Data.aspx?d=SNA&f=group_code%3a201 - UNIDO INDTSTAT 2, 2019. "UNIDO Industrial Statistics Database at the 2-digit level of ISIC (Revision 3)." United Nations Industrial Development Organization. https://www.unido.org/researchers/statistical-databases - World Development Indicators, October 2015. "World Development Indicators." The World Bank. http://databank.worldbank.org/data/download/archive/WDI_excel_2015_10.zip \ No newline at end of file diff --git a/notebooks/Admissible EOS.ipynb b/notebooks/Admissible EOS.ipynb index 0b14694..7334eca 100644 --- a/notebooks/Admissible EOS.ipynb +++ b/notebooks/Admissible EOS.ipynb @@ -357,7 +357,7 @@ "source": [ "using Plots\n", "plot(sigmas', correlations', label=\"\", xlabel=\"Elasticity of substitution\", ylabel=\"Correlation of volatilities in model and data (w/o China)\", size=(800,500))\n", - "savefig(\"../Admissible-EOS.pdf\")" + "savefig(\"../output/Admissible-EOS.pdf\")" ] }, { diff --git a/notebooks/Compare scenarios.ipynb b/notebooks/Compare scenarios.ipynb index f9496e3..abaa216 100644 --- a/notebooks/Compare scenarios.ipynb +++ b/notebooks/Compare scenarios.ipynb @@ -193,7 +193,7 @@ "outputs": [], "source": [ "compare_trade([\"baseline/actual\", \"baseline/kappa1972\"], [\"Baseline\", \"Constant trade cost\"], 0)\n", - "savefig(\"../trade_share.pdf\")" + "savefig(\"../output/trade_share.pdf\")" ] }, { diff --git a/notebooks/Create Figure 2.ipynb b/notebooks/Create Figure 2.ipynb index ba7b0f3..420d6f3 100644 --- a/notebooks/Create Figure 2.ipynb +++ b/notebooks/Create Figure 2.ipynb @@ -510,8 +510,8 @@ } ], "source": [ - "plot_model_data(\"baseline/actual\", \"../Figure2.pdf\")\n", - "plot_model_data(\"CES0.5/actual\", \"../CES0.5-model-data.pdf\")\n", + "plot_model_data(\"baseline/actual\", \"../output/Figure2.pdf\")\n", + "plot_model_data(\"CES0.5/actual\", \"../output/CES0.5-model-data.pdf\")\n", "model_volatility = volatility(\"baseline/actual\") " ] }, @@ -599,8 +599,7 @@ }, "outputs": [], "source": [ - "plot_model_data(\"CES0.5/actual\", \"../CES0.5-model-data.pdf\")\n", - "plot_model_data(\"CES1.5/actual\", \"../CES2-model-data.pdf\")\n" + "plot_model_data(\"CES1.5/actual\", \"../output/CES2-model-data.pdf\")\n" ] }, { diff --git a/Figure2.pdf b/output/Figure2.pdf similarity index 100% rename from Figure2.pdf rename to output/Figure2.pdf diff --git a/output/table1.csv b/output/table1.csv new file mode 100644 index 0000000..7657a61 --- /dev/null +++ b/output/table1.csv @@ -0,0 +1,26 @@ +country_names,actual,kappa1972,nosectoral,nosectoral_kappa1972,trade_barriers,diversification,specialization +Australia,0.000901942775696,0.000922506144756,0.00104803084019,0.001053587848003,-2.22907664910862,-0.602381658357782,-1.62669499075084 +Austria,0.000537635959177,0.000948228793949,0.00069440379141,0.001809665290992,-43.3010300248674,-117.61523238896,74.3142023640924 +Belgium and Luxembourg,0.00102264424094,0.003014133747278,0.00112084730178,0.004335936362543,-66.0717032924249,-106.667100080327,40.5953967879019 +Canada,0.000593783644813,0.002192824804059,0.00107087725824,0.003269826178742,-72.9215191421559,-100.279279787029,27.3577606448732 +China,0.006239774317195,0.006155142413154,0.007010221722551,0.006981666879466,1.37497881217967,0.463918479351593,0.911060332828081 +Colombia,0.001101059367104,0.001954030477196,0.002506447083638,0.003778584881929,-43.6518836346905,-65.1032731135367,21.4513894788461 +Denmark,0.000442946465664,0.002009248413984,0.000480901143154,0.001287403676397,-77.954619121192,-40.1395132443504,-37.8151058768415 +Finland,0.000618587046923,0.000996266875389,0.00100047597326,0.001663900612578,-37.9095037480033,-66.5910566442343,28.681552896231 +France,0.00019580945372,0.000262782583831,0.000259324378637,0.000189734643259,-25.4861372980626,26.4818673913442,-51.9680046894068 +Germany,0.00024314544262,0.00052116797696,0.000430856830696,0.000686005587733,-53.3460509147322,-48.9571056390617,-4.38894527567055 +Greece,0.000299020437898,0.000382989029137,0.000441925663269,0.000407885744884,-21.9245421802567,8.88796174184878,-30.8125039221055 +India,0.001020008558809,0.001217111577111,0.000864048013052,0.000938025527107,-16.1943261413636,-6.07812097479604,-10.1162051665676 +Ireland,0.001047578172297,0.002554804588061,0.002053221214635,0.003817008664529,-58.9957612729845,-69.0380570841368,10.0422958111523 +Italy,0.000190296896478,0.000263198563488,0.000184265663613,0.000126776988546,-27.6983529254683,21.8423209858716,-49.5406739113399 +Japan,0.000295994717055,0.000305358821735,0.000223180851716,0.000198772137679,-3.06659052034836,7.99345304590116,-11.0600435662495 +Mexico,0.001050249961057,0.002429502228077,0.005228868108349,0.007485124260942,-56.7709817706892,-92.8690711421662,36.098089371477 +Netherlands,0.000336490537215,0.001241481223508,0.000661532666296,0.002315652865271,-72.8960429812513,-133.237633212126,60.3415902308745 +Norway,0.000840733434693,0.001256393645754,0.002095221222143,0.003226162153494,-33.0835970451012,-90.0148560263942,56.931258981293 +Portugal,0.001561708174025,0.001664499204642,0.001715451462262,0.002719745473594,-6.17549292483395,-60.3361064115459,54.1606134867119 +ROW,0.001649807045623,0.001631323472273,0.00238995755382,0.002414015906191,1.13304158640999,-1.47477510005261,2.60781668646261 +South Korea,0.000852855663416,0.000863846876239,0.000792890681852,0.000877294318542,-1.27235660919126,-9.77067105419964,8.49831444500838 +Spain,0.000241604222762,0.001237539718996,0.000253294586926,0.000795073121127,-80.4770530551078,-43.778678444419,-36.6983746106888 +Sweden,0.000346159381,0.000592327952993,0.000530996037515,0.000691129586373,-41.5595061400032,-27.0346094673786,-14.5248966726246 +United Kingdom,0.000236407675674,0.000600182168414,0.000183170833737,0.000360931349789,-60.6106798709909,-29.6177603079941,-30.9929195629968 +United States,0.000261762573356,0.000266192095183,0.000359518686928,0.000337773188841,-1.66403206812752,8.16909986442042,-9.83313193254795 diff --git a/volatility_by_decade.csv b/output/table2.csv similarity index 100% rename from volatility_by_decade.csv rename to output/table2.csv diff --git a/output/table3.csv b/output/table3.csv new file mode 100644 index 0000000..ef84eba --- /dev/null +++ b/output/table3.csv @@ -0,0 +1,26 @@ +"country_names","actual","kappa1972","nosectoral","nosectoral_kappa1972","trade_barriers","diversification","specialization" +"Australia",0.0008542716612979551,0.0008869510967231913,0.0009968502666681148,0.001012341421178595,-3.684468686714431,-1.7465624167681544,-1.9379062699462644 +"Austria",0.0005206432719978354,0.0009297723693467961,0.0006644639139452534,0.0017753359455092114,-44.00314645146865,-119.47784943796425,75.4747029864956 +"Belgium and Luxembourg",0.0009936974730767728,0.002877934370547796,0.0011030588291980222,0.004359283308470804,-65.47185080917501,-113.14450088217197,47.67265007299696 +"Canada",0.000575438525043696,0.0022216074707243874,0.0010767175425847601,0.0033140161660575227,-74.0981009189681,-100.70629726246189,26.60819634349379 +"China",0.0062566496058658804,0.006149960711291366,0.007032293084166565,0.006934324877995209,1.7347898561145694,1.5929891388002737,0.14180071731429567 +"Colombia",0.001047941620528721,0.0018847367993496185,0.002486931725443539,0.0037461009113969497,-44.39851649894337,-66.80875474962458,22.41023825068121 +"Denmark",0.0004832317281309594,0.002012098877012407,0.00047545220141505376,0.0013190419744761577,-75.98369873112455,-41.92586073670882,-34.057837994415735 +"Finland",0.000656807716947457,0.0010351952960536862,0.001047991156505518,0.0017218974026702522,-36.552289268382225,-65.09943087393866,28.547141605556444 +"France",0.00020181156684027633,0.00026941170310292815,0.0002597429163224108,0.00019099336448688748,-25.09175937202154,25.518398437672058,-50.610157809693604 +"Germany",0.00024648164275143985,0.0005224534488999139,0.0004510289607743581,0.0007095369898739473,-52.82227665059242,-49.47962916962416,-3.3426474809682607 +"Greece",0.0003152151978208216,0.0004189222924226812,0.0004019341663874655,0.0003920077122279313,-24.755687743926966,2.3695215888675305,-27.125209332794483 +"India",0.0010099219911639903,0.0011971921419061918,0.0008593840662970158,0.0009463932819317106,-15.642447372234374,-7.267773700565488,-8.374673671668885 +"Ireland",0.0011511486026106828,0.0025686697789394017,0.0019939700461019745,0.0037295682722509015,-55.18502954139985,-67.56797780622279,12.382948264822936 +"Italy",0.00019972881814539378,0.00027266280053349915,0.00018906458004641652,0.00013122201306685149,-26.748783569082704,21.213956163579613,-47.96273973266231 +"Japan",0.000305082146389107,0.0003064314649680526,0.0002247837524446062,0.00020216323697475584,-0.4403329074206783,7.381916694556383,-7.82224960197706 +"Mexico",0.001133331952235176,0.0025442181066413364,0.005342828952666665,0.007716386001523404,-55.454607084323214,-93.29220017186773,37.83759308754452 +"Netherlands",0.0003360263397009718,0.0012766053315435282,0.0006779556182033284,0.0023541814271956065,-73.67813439297748,-131.30336898762388,57.6252345946464 +"Norway",0.0008168483642839313,0.0012325522980426585,0.0020510326412901234,0.0031546571302833973,-33.72708277116366,-89.53976969138535,55.81268692022168 +"Portugal",0.0015862304716957884,0.0017012349289203977,0.0017648988764110635,0.002798276047696702,-6.760057371828767,-60.74276713454379,53.98270976271502 +"ROW",0.0016673626005009263,0.0016549505469815617,0.0023943039021342176,0.002416279016615745,0.7499954329150627,-1.3278411564386414,2.077836589353704 +"South Korea",0.000896581054057798,0.0008991085101573594,0.0008450015650398345,0.0009150116777135972,-0.2811069043400656,-7.786614394463882,7.505507490123816 +"Spain",0.00023462085842290776,0.0011778124053852526,0.0002520057605863782,0.0007665637174650665,-80.07994674277816,-43.68759868091054,-36.39234806186762 +"Sweden",0.0003537464329879398,0.000600688261701615,0.0005346447620930088,0.0007020466561827368,-41.109814267744206,-27.86834782080076,-13.24146644694344 +"United Kingdom",0.00024093689934133922,0.000592551169141418,0.00019434414158450052,0.00037149535462164244,-59.33905595183505,-29.89635701737399,-29.44269893446105 +"United States",0.0002689944207993223,0.00027500067114923934,0.00036453431384501114,0.0003457759785172597,-2.184085705979067,6.821196199034551,-9.005281905013618 diff --git a/output/table4left.csv b/output/table4left.csv new file mode 100644 index 0000000..98c5528 --- /dev/null +++ b/output/table4left.csv @@ -0,0 +1,26 @@ +"country_names","actual","kappa1972","nosectoral","nosectoral_kappa1972","trade_barriers","diversification","specialization" +"Australia",0.0008739810376388273,0.0010863060958355285,0.0013321673688851134,0.0014150459658555166,-19.545601282241922,-7.629396289694706,-11.916204992547206 +"Austria",0.0009019803749128619,0.002680456889363307,0.001834795844299465,0.00570065745201765,-66.34975259284582,-144.22397998859253,77.87422739574671 +"Belgium and Luxembourg",0.0018545258919791259,0.008542755105837319,0.0034735733321686374,0.014492861645289477,-78.29124364443133,-128.98986540760475,50.69862176317341 +"Canada",0.0015713440192457347,0.007718735106923445,0.0033248600199918816,0.011943461573734935,-79.6424673540579,-111.65821127884617,32.01574392478829 +"China",0.006522938696689668,0.0064467716967259135,0.007845285287015499,0.007776154380775705,1.1814750629751103,1.0723337120019776,0.1091413509731327 +"Colombia",0.001410254567655797,0.004656218671635821,0.004957520686680126,0.009833335813312305,-69.71244979866148,-104.7161972081352,35.00374740947374 +"Denmark",0.0006693034192108309,0.0054328699422005215,0.0013954826320170684,0.004358536651019381,-87.68048147054047,-54.53938803111053,-33.14109343942993 +"Finland",0.000718751667945439,0.0018013853234600922,0.002325332888065734,0.004486382994207122,-60.10005973819837,-119.96601049188371,59.86595075368535 +"France",0.00020143669064452173,0.00036017749252388484,0.000598465364898892,0.00037966000224761196,-44.07293769719283,60.7493158770242,-104.82225357421703 +"Germany",0.0003323338995029492,0.0012637395737961435,0.001380858345076459,0.0024528855995188865,-73.70234291985868,-84.82976055123194,11.127417631373264 +"Greece",0.0003062562723178598,0.0007158945907855973,0.0009983558134753806,0.0011164095292806584,-57.22047962650689,-16.490376841055586,-40.7301027854513 +"India",0.0012482952550315353,0.001999238957094838,0.0012027244943988386,0.0015706347326971538,-37.56147805135432,-18.402514466451684,-19.158963584902647 +"Ireland",0.001997056680245853,0.00677492795700391,0.006185529854802696,0.013109987037265803,-70.5228351811284,-102.20709690801382,31.684261726885424 +"Italy",0.00020373528364281125,0.0004016413005266298,0.0004674472979833052,0.00029136064381227444,-49.27431930539147,43.84176974333739,-93.11608904872885 +"Japan",0.00038695361968248625,0.0004330559461637631,0.00034675645555386626,0.00029987772038755895,-10.645813061724581,10.825099062045853,-21.470912123770436 +"Mexico",0.0014600825799073766,0.005650917459768327,0.014717145523557226,0.02288458681522916,-74.1620260727143,-144.53301344109136,70.37098736837703 +"Netherlands",0.0005830176300921389,0.003928944617497795,0.0021274563092433005,0.008062457491494824,-85.16096084695025,-151.05840779276025,65.89744694581 +"Norway",0.001177992897803805,0.0030210408231021854,0.005111517657944462,0.009259753976304096,-61.00705131835421,-137.31149498668395,76.30444366832978 +"Portugal",0.0018516249897004918,0.0032936189081149846,0.0033054344192075843,0.007147906703831138,-43.781444017753095,-116.66414335782068,72.88269934006757 +"ROW",0.0016373942786625543,0.0016216910249942783,0.0028253933071399704,0.002842378194926603,0.968325866410428,-1.0473565879599414,2.0156824543703826 +"South Korea",0.0008825172067100113,0.001132609528826825,0.001102712705457737,0.0017284660661259716,-22.081071697839526,-55.24881653754052,33.167744839700994 +"Spain",0.0003452572034101924,0.003830859173091201,0.0005889839997368061,0.002859813141844643,-90.98747336275488,-59.27728061784785,-31.710192744907037 +"Sweden",0.0004252109447205113,0.0009811589875400799,0.001262323740040598,0.0018924918914313502,-56.662380906627355,-64.22691524955431,7.564534342926959 +"United Kingdom",0.0003290000390753582,0.0015546845871220528,0.0003900666646463846,0.001146441999603566,-78.8381487923293,-48.65136898007989,-30.18677981224943 +"United States",0.0002935506402312404,0.000297042436711131,0.0007369596584089607,0.000684098933176118,-1.1755210866675838,17.795681256227002,-18.97120234289457 diff --git a/output/table4right.csv b/output/table4right.csv new file mode 100644 index 0000000..8e395d7 --- /dev/null +++ b/output/table4right.csv @@ -0,0 +1,26 @@ +"country_names","actual","kappa1972","nosectoral","nosectoral_kappa1972","trade_barriers","diversification","specialization" +"Australia",0.0009120705373053116,0.000905828389040825,0.0009642941393942121,0.0009584062739872796,0.6891093655274421,0.6499978890225709,0.03911147650487118 +"Austria",0.00032138970036204353,0.00046793299802397114,0.0003633419421365474,0.0006966635914905013,-31.317154011528064,-71.23277280327183,39.91561879174378 +"Belgium and Luxembourg",0.0005532398521266468,0.0011993610057681684,0.00046294475112694034,0.0013453377595946106,-53.87211611300411,-73.57192740333541,19.699811290331294 +"Canada",0.0003204103939096145,0.0007274654172970391,0.0004323967767947414,0.0009530874756667115,-55.95524044288908,-71.57600711888705,15.620766675997965 +"China",0.006131400157791273,0.006090319083302559,0.00669698477581095,0.006707354151330002,0.6745307417692332,-0.17025997123009862,0.8447907129993318 +"Colombia",0.000979405299893771,0.0012050005221209011,0.001640490448809076,0.0019466521838236311,-18.721587093594255,-25.40760185528261,6.6860147616883525 +"Denmark",0.00033286637753386145,0.0007640937306949525,0.0002060058080170759,0.00041351464130493914,-56.4364469747559,-27.157510257168504,-29.278936717587403 +"Finland",0.0005590537020072709,0.0007197028012367426,0.000592125424370491,0.0008147826314605183,-22.321588710424784,-30.937382306614836,8.61579359619005 +"France",0.00019749372629769926,0.00022940581123516066,0.00016821356367175615,0.00014353177930414717,-13.910756996800215,10.759005726453909,-24.669762723254124 +"Germany",0.00022429640307228716,0.0003148236346566311,0.00016762126267642406,0.00022691576467469092,-28.75490325975029,-18.834196505906437,-9.92070675384384 +"Greece",0.0003010586380831408,0.00032131604666451,0.00033246732787038614,0.0002813405330699396,-6.304511956889674,15.911684253301136,-22.21619621019081 +"India",0.0009251623689821087,0.0009770146434039677,0.0008333142890821895,0.0008385528410765188,-5.30721568729032,-0.5361794758856274,-4.7710362114046925 +"Ireland",0.0006736673985873276,0.0012367825200476142,0.0008919480120252569,0.0012538314431957888,-45.53065008054993,-29.26007000459547,-16.270580075954467 +"Italy",0.00018456914294650756,0.00021864477477952926,0.00011205106255654133,9.170675426192337e-5,-15.58492850669855,9.304731071269448,-24.889659577967993 +"Japan",0.0002738266769230115,0.000270648482370444,0.00019783377785738098,0.00018477617762695237,1.1742887027230362,4.824560668533999,-3.6502719658109624 +"Mexico",0.0009365789897805288,0.0014023007426876312,0.0024101448610278683,0.0030261055623852584,-33.21126051851803,-43.925007140540195,10.713746622022143 +"Netherlands",0.00022599377886155627,0.000486120517075508,0.00023209073940034662,0.0006660430037678129,-53.51075074528213,-89.26845280633599,35.757702061053855 +"Norway",0.0006974907754747299,0.0007912458698846884,0.0010823371973330057,0.0013669841776047754,-11.849046924393013,-35.97452967599724,24.125482751604228 +"Portugal",0.0013289441527404697,0.0012660978873878547,0.0012869366326499932,0.0015190219451863488,4.963776180234849,-18.330755848205516,23.294532028440365 +"ROW",0.0016606090694489457,0.0016574942560716901,0.0022598008729660403,0.0022883816654239437,0.18792302693330268,-1.724337345556823,1.9122603724901255 +"South Korea",0.0008882497385046625,0.000857874702351969,0.0008000597378529285,0.0007619739463957671,3.540731072896379,4.439551761200619,-0.8988206883042397 +"Spain",0.000201626802236426,0.000499169767880085,0.00016764814245502586,0.0002785384553481075,-59.607569366087375,-22.214949708196418,-37.392619657890954 +"Sweden",0.00030238879927425497,0.00041675397124053083,0.00032444811416379015,0.000361928018689544,-27.441891345594318,-8.993292712769911,-18.448598632824407 +"United Kingdom",0.0002087234684029609,0.0003241828552125091,0.0001693858581785914,0.0002048650236848777,-35.61551295914831,-10.944183178048977,-24.671329781099345 +"United States",0.00026023882020738176,0.0002591043030153586,0.00025833664610975594,0.0002481737416779851,0.4378611928941682,3.922321749773647,-3.4844605568794784 diff --git a/output/table5center.csv b/output/table5center.csv new file mode 100644 index 0000000..65a435a --- /dev/null +++ b/output/table5center.csv @@ -0,0 +1,26 @@ +"country_names","actual","kappa1972","nosectoral","nosectoral_kappa1972","trade_barriers","diversification","specialization" +"Australia",0.0008964326955033541,0.0009210048215639945,0.0010461320029150206,0.0010517634035293588,-2.6679693184356505,-0.6114409482433896,-2.056528370192249 +"Austria",0.0005343288999849364,0.0009270581494630493,0.000674243022082354,0.0017712135373401242,-42.36295745909585,-118.32812384995847,75.96516639086263 +"Belgium and Luxembourg",0.0010051370084345466,0.0029676562284719926,0.0011040947961876223,0.004289913943693007,-66.13027483469409,-107.35135414069578,41.221079306001684 +"Canada",0.0005846051438325198,0.0021800538925213888,0.0010382858063252712,0.003218962411468583,-73.18391321251319,-100.02856409302811,26.84465088051492 +"China",0.006241700113429659,0.006156908414137401,0.007009690514330473,0.006981261891693037,1.3771798050066992,0.4617353503612079,0.9154444546454913 +"Colombia",0.0010866032627803153,0.001940693019573346,0.0021628510695010004,0.00334284407838051,-44.0095238236493,-60.8026615739014,16.793137750252107 +"Denmark",0.00043316788773455626,0.0019813199412153423,0.00046589839232956447,0.0012764941965576228,-78.13740836480699,-40.91190864060242,-37.225499724204575 +"Finland",0.0006079646285221963,0.0009809968971888482,0.0009710248641259996,0.0016239465397442073,-38.0258357325712,-66.55695624412522,28.531120511553997 +"France",0.00019263284458509192,0.000257389582683598,0.0002590781222916307,0.00018711014915024865,-25.159036128556053,27.960717131994542,-53.11975326055061 +"Germany",0.00023575464583127468,0.0005100904721603455,0.0004197673673301789,0.0006703876619516135,-53.78179779896656,-49.13251830797828,-4.6492794909882855 +"Greece",0.0002854805890163738,0.0003587099443499559,0.00036484636717937024,0.0003345805443012347,-20.414643219966,8.437408372656751,-28.852051592622747 +"India",0.001015312744746895,0.001209097145625897,0.0008451448437148433,0.0009188817917242565,-16.027198606832236,-6.098513115854134,-9.928685490978093 +"Ireland",0.001041364865695621,0.0025297325625278015,0.002042712401464333,0.003810753634668406,-58.83498196129273,-69.89044057042067,11.055458609127932 +"Italy",0.0001842773741159357,0.0002530956957370638,0.00018148356093890266,0.00012117900665252503,-27.190632942498592,23.82677987105196,-51.01741281355056 +"Japan",0.0002986384105308857,0.00030588667690071,0.00022171462509766997,0.00019727867505109134,-2.369592047376776,7.988563050266643,-10.358155097643419 +"Mexico",0.0010136353251752493,0.0023917188297460736,0.0049266043096508035,0.007119753298194407,-57.61895952950013,-91.69760932042534,34.078649790925226 +"Netherlands",0.0003257412215647792,0.0012227346338769213,0.000657074226247093,0.002304613038743169,-73.35961438076286,-134.74214002364758,61.382525642884715 +"Norway",0.0008558450181759593,0.0012731461910010715,0.0021179506722773566,0.0032537081394850374,-32.777160688592204,-89.20872365133792,56.431562962745744 +"Portugal",0.00159524781293852,0.001746275436170762,0.0017426362290084707,0.0027613644406790042,-8.648556814348593,-58.337201026225486,49.6886442118769 +"ROW",0.001659404063972606,0.00164176617282539,0.0023949238401897487,0.00241858194738468,1.074324190567412,-1.4410156322210725,2.5153398227884844 +"South Korea",0.0008384617634497905,0.0008504675550577094,0.0007673601407235056,0.0008558798536700802,-1.4116695618217021,-10.408358604646361,8.99668904282466 +"Spain",0.00024291958819983638,0.001236205246072013,0.00024482241750603653,0.0007912227183017899,-80.34957471894715,-44.19980440399488,-36.14977031495228 +"Sweden",0.00033451056251304916,0.0005746820796891182,0.0005130284471344725,0.0006709041146591341,-41.792066546775395,-27.471827137896234,-14.320239408879154 +"United Kingdom",0.0002306811196992881,0.0005894262961298805,0.00018359674367535354,0.00035620321633903976,-60.86344955867776,-29.283809323914564,-31.579640234763197 +"United States",0.0002535807902674204,0.00025598301376288633,0.0003475790402252197,0.0003253581422607187,-0.9384308201367917,8.680614247742197,-9.619045067878988 diff --git a/output/table5left.csv b/output/table5left.csv new file mode 100644 index 0000000..c404976 --- /dev/null +++ b/output/table5left.csv @@ -0,0 +1,26 @@ +"country_names","actual","kappa1972","nosectoral","nosectoral_kappa1972","trade_barriers","diversification","specialization" +"Australia",0.0008980125855150144,0.0009215602954570539,0.001047294054138022,0.0010526205478587178,-2.5552001380832956,-0.5779864591555639,-1.9772136789277315 +"Austria",0.0005368799561472861,0.0009309885804000441,0.0006822300119641222,0.0017863254182291007,-42.332272656170524,-118.59387209567606,76.26159943950553 +"Belgium and Luxembourg",0.0010127724959867665,0.0029850781491618807,0.0011116326128631144,0.004306851464621798,-66.0721614182489,-107.03970523035734,40.96754381210844 +"Canada",0.0005884718913951076,0.002183879071395756,0.0010539527581490424,0.0032432325032024606,-73.05382431184687,-100.24729728529383,27.19347297344696 +"China",0.006240159636928782,0.0061568844867954985,0.007009112350504217,0.006980645169979997,1.3525533946898174,0.4623634012506367,0.8901899934391806 +"Colombia",0.001090149329142,0.00194570272855178,0.0022092775514153413,0.0034012605797138374,-43.9714344259867,-61.26234037743831,17.290905951451624 +"Denmark",0.0004378539896003069,0.0019930810220216443,0.00047256856860266927,0.0012854260743834756,-78.03130004438164,-40.783966973720894,-37.247333070660744 +"Finland",0.0006131091867646676,0.0009884075523095316,0.0009824519030339428,0.0016375787548874514,-37.97000181432597,-66.28104472924421,28.311042914918254 +"France",0.00019403530068292808,0.00025949410756376473,0.0002601192296785166,0.00018840679905251321,-25.22554654338409,27.6354755409549,-52.861022084339 +"Germany",0.00023908969702183625,0.0005149484296247825,0.0004240437563074544,0.0006765779571680627,-53.57016678426437,-49.04067792664549,-4.529488857618876 +"Greece",0.00028946814627197763,0.0003680153333879182,0.00037159945434998685,0.0003421875582211245,-21.343455011192546,7.992030076056583,-29.335485087249126 +"India",0.001017008397999208,0.0012118000721349682,0.0008523607416803104,0.0009260847052103436,-16.07457192113986,-6.083838846464592,-9.990733074675267 +"Ireland",0.0010442643918993882,0.0025442252110314924,0.0020449763352504324,0.0038099998443502235,-58.95550490689394,-69.37371351588041,10.418208608986452 +"Italy",0.00018671007261467472,0.0002570618748493858,0.00018278655957987633,0.000123196015936593,-27.367653128621523,23.18140085074763,-50.54905397936914 +"Japan",0.00029876992352131676,0.00030605614080069687,0.00022246941143686517,0.0001980167249898098,-2.3806799825411344,7.989608175507548,-10.370288158048682 +"Mexico",0.0010219488364855125,0.0024029915355664386,0.0050387117303510864,0.007255231026321679,-57.47180872842249,-92.23999598684021,34.768187258417726 +"Netherlands",0.00033007265557454733,0.0012310519172887896,0.0006580350623219789,0.0023083252395855918,-73.1877550459867,-134.0552867094455,60.867531663458806 +"Norway",0.0008493281307077529,0.0012680910221646471,0.0021251786127072687,0.0032571042487649395,-33.02309409478042,-89.26217568557969,56.239081590799294 +"Portugal",0.0015818254949837298,0.0017124030197002097,0.0017354138494344927,0.002744984803309662,-7.625396779511642,-58.95638715072547,51.33099037121383 +"ROW",0.0016546924971796515,0.0016372878740597452,0.0023934579300185343,0.0024172446657540238,1.063015453522574,-1.452813284233821,2.515828737756395 +"South Korea",0.0008448915893309315,0.0008560948510180879,0.0007781763353305936,0.0008648719950177141,-1.3086472455514997,-10.126875495632289,8.81822825008079 +"Spain",0.00024260003435300724,0.0012366947298772008,0.00024627013928364135,0.0007913804285152304,-80.38319170511087,-44.07799888382451,-36.30519282128637 +"Sweden",0.0003406410398478056,0.0005831312851734252,0.0005202964737439351,0.0006791233829000247,-41.584159775187196,-27.236904140523688,-14.3472556346635 +"United Kingdom",0.00023349535206416573,0.0005941391563346279,0.00018313708319292446,0.00035802791426980306,-60.70022492632051,-29.436004884077615,-31.264220042242894 +"United States",0.0002583593747811766,0.000260814361450584,0.0003524201354830508,0.0003304256215213402,-0.9412774111645485,8.433014899709756,-9.374292310874303 diff --git a/output/table5right.csv b/output/table5right.csv new file mode 100644 index 0000000..f8ff761 --- /dev/null +++ b/output/table5right.csv @@ -0,0 +1,26 @@ +"country_names","actual","kappa1972","nosectoral","nosectoral_kappa1972","trade_barriers","diversification","specialization" +"Australia",0.0008943924362738143,0.0009210419873560871,0.0010447551394857394,0.0010513109148095547,-2.89341326976549,-0.7117781180241335,-2.181635151741357 +"Austria",0.0005301456244121363,0.0009124533245970433,0.0006636763461128697,0.0017516533359309525,-41.898877441620506,-119.23645412750884,77.33757668588834 +"Belgium and Luxembourg",0.0009929360962388873,0.002940374592160875,0.0010939180923921841,0.004267989941591617,-66.23096598351502,-107.94787363697134,41.71690765345632 +"Canada",0.0005799890408739063,0.0021777508039722182,0.0010083727913873244,0.0031716643214861956,-73.36752029589401,-99.3360455270193,25.96852523112527 +"China",0.006243768388373064,0.006158554077561152,0.007010625697707926,0.006982290576980278,1.383673988061458,0.4600937228250901,0.9235802652363678 +"Colombia",0.0010814584823906168,0.0019341838571785182,0.0021272767560921776,0.003300745958453681,-44.087089840146355,-60.6699925659237,16.582902725777338 +"Denmark",0.00042565582957588183,0.0019609163207794473,0.00046019013424074203,0.0012679064301924989,-78.29301408401317,-41.19075798352765,-37.10225610048552 +"Finland",0.0005988391272623714,0.0009679447012275761,0.0009549296440807318,0.001605039276710734,-38.132919524957785,-67.16392287756871,29.03100335261093 +"France",0.00019043564904789155,0.0002541992900462546,0.0002570075349354224,0.00018481191595683222,-25.084114509824346,28.401188282411546,-53.485302792235885 +"Germany",0.00023066209426868836,0.0005028410301483021,0.000413843401053455,0.0006616499596502177,-54.128227324516544,-49.28129244419007,-4.846934880326482 +"Greece",0.0002804759216425845,0.00034855588291422205,0.0003583771471888121,0.0003282430413392561,-19.532007522705253,8.645415936638152,-28.17742345934341 +"India",0.0010138853304832742,0.001206404390573294,0.0008353820725834879,0.0009089601499517506,-15.958086823484882,-6.098956365145331,-9.859130458339559 +"Ireland",0.001037239236137356,0.002507812552349825,0.0020381311072760703,0.0038115173438480958,-58.639682413047154,-70.7144652781309,12.074782865083758 +"Italy",0.00018082021613013548,0.00024809609557234437,0.0001792845885019389,0.00011857526632413856,-27.116863442371812,24.47008367372618,-51.58694711609799 +"Japan",0.0002973077238063987,0.0003048043807677982,0.0002205102866347349,0.00019601308125447462,-2.459497774446528,8.037025359856095,-10.496523134302624 +"Mexico",0.0010054343155996624,0.0023831060860013227,0.0047872591006874006,0.006950823901012675,-57.809922038061366,-90.78759913519325,32.97767709713188 +"Netherlands",0.00031926064602691396,0.0012094558325408677,0.0006578896913208853,0.002302118146512187,-73.60295122508113,-135.94778833196813,62.344837106887006 +"Norway",0.000867483604846744,0.0012823295291312874,0.0020981480148883017,0.003241877534583504,-32.350960877082834,-89.19154505238762,56.84058417530477 +"Portugal",0.0016197534742149855,0.0017967156816167309,0.0017593216715302883,0.0027918884681311386,-9.849204813669255,-57.46968244144896,47.6204776277797 +"ROW",0.0016665088443871103,0.001648425543168643,0.0023976249180562787,0.002421664257297249,1.097004429069161,-1.4583212047758856,2.5553256338450336 +"South Korea",0.0008288386605277316,0.000842691032548549,0.000752275027858599,0.0008436171225886239,-1.6438257304012989,-10.839333896051937,9.195508165650638 +"Spain",0.0002434557140342469,0.001235934501111149,0.00024331052234349796,0.0007901668231461553,-80.30189190322209,-44.24638201385382,-36.05550988936827 +"Sweden",0.0003237623493698692,0.0005598215703426471,0.0005017590097321317,0.0006581416360633146,-42.16686770899062,-27.934369559119816,-14.232498149870809 +"United Kingdom",0.00022667197612836427,0.0005826428614434222,0.00018420430899758928,0.00035355485132940656,-61.09589748223916,-29.06592589365521,-32.02997158858396 +"United States",0.00024534088403189476,0.00024765070266935594,0.00034054028305787013,0.0003179918661223868,-0.932692139599974,9.104927501695087,-10.037619641295061 diff --git a/output/table6left.csv b/output/table6left.csv new file mode 100644 index 0000000..35b1cab --- /dev/null +++ b/output/table6left.csv @@ -0,0 +1,26 @@ +country_names,actual,kappa1972,nosectoral,nosectoral_kappa1972,trade_barriers,diversification,specialization +Australia,0.000904390655002,0.000945751296435,0.002189970747244,0.002187894900241,-4.37331057212323,0.219491848564221,-4.59280242068743 +Austria,0.000403852313084,0.000829434227695,0.002211456958023,0.002704507204535,-51.3099050414293,-59.4441644736972,8.13425943226786 +Belgium and Luxembourg,0.000800741256861,0.002882586786602,0.001035180792458,0.002433215729824,-72.2214345607099,-48.499318177103,-23.7221163836069 +Canada,0.000432603517932,0.001698188799353,0.001098738390042,0.001987270238161,-74.5255934972135,-52.3223241407493,-22.2032693564642 +China,0.006129843971633,0.0059752511323,0.021793799651979,0.022089316179431,2.58721911278979,-4.94567543537104,7.53289454816086 +Colombia,0.00142141621748,0.002259497970939,0.010470334802726,0.013428381702088,-37.0915028133695,-130.916112225248,93.8246094118788 +Denmark,0.000365668181561,0.001851004592012,0.00051745500002,0.000767434977607,-80.2448798269326,-13.505097646238,-66.7397821806947 +Finland,0.000650726391189,0.001058978229526,0.000989320271971,0.001292504498975,-38.5514854747852,-28.6298828956176,-9.92160257916761 +France,0.000206996929777,0.000265054197937,0.000949061662239,0.000848782466574,-21.9039232776394,37.8334681910291,-59.7373914686685 +Germany,0.000235695058325,0.00041843407316,0.00067193174187,0.000708355275562,-43.672116244172,-8.70472459793873,-34.9673916462333 +Greece,0.000663678129971,0.000950205323402,0.004730490855124,0.004432251102183,-30.1542399704964,31.3868745623733,-61.5411145328697 +India,0.001291082269909,0.001922373911043,0.005631568366331,0.006195409466083,-32.8391702315112,-29.3304594133677,-3.50871081814352 +Ireland,0.001104178749655,0.002643731945913,0.005628226412637,0.006414756846334,-58.2340883173941,-29.750763306876,-28.4833250105181 +Italy,0.000219255522766,0.000300096475859,0.001089461788585,0.000976478510641,-26.938321372067,37.6489852540967,-64.5873066261637 +Japan,0.000277985439722,0.000288378200898,0.001038293546508,0.001024740825751,-3.60386504403566,4.69963427020522,-8.30349931424092 +Mexico,0.001082632985658,0.003496730048791,0.015427305095073,0.016452805427212,-69.038702715046,-29.3274092603568,-39.7112934546891 +Netherlands,0.000269901762787,0.001047329019928,0.000931058273448,0.001428371937318,-74.2295154959689,-47.4839954214152,-26.7455200745537 +Norway,0.000661267171601,0.000951201546579,0.001864884136502,0.002485437491339,-30.4808561362141,-65.2388925426227,34.7580364064085 +Portugal,0.001374130666181,0.001599987034811,0.006712975711971,0.00694337150817,-14.1161374258832,-14.399853948012,0.28371652212873 +ROW,0.001675722606857,0.001619212394774,0.005066452079898,0.005190966280495,3.48998144195279,-7.68980036210633,11.1797818040591 +South Korea,0.001012435560592,0.000981784979899,0.003917854569879,0.00416388995507,3.12192397724207,-25.0600070513179,28.18193102856 +Spain,0.000243824713324,0.001309895192985,0.002562028223435,0.002937056041051,-81.3859372391021,-28.630368263368,-52.7555689757341 +Sweden,0.000316579862764,0.000591322299488,0.000728428217045,0.000650463361465,-46.462383874642,13.1848326449403,-59.6472165195822 +United Kingdom,0.000220845784408,0.000549327564726,0.000706591953729,0.000677716208404,-59.7970685272786,5.25656223698042,-65.053630764259 +United States,0.000229834033828,0.000229564535851,0.000472782633615,0.000455479940241,0.117395300844209,7.53718047506726,-7.41978517422305 diff --git a/output/table6right.csv b/output/table6right.csv new file mode 100644 index 0000000..078c39e --- /dev/null +++ b/output/table6right.csv @@ -0,0 +1,26 @@ +country_names,actual,kappa1972,nosectoral,nosectoral_kappa1972,trade_barriers,diversification,specialization +Australia,0.000899976017008,0.000921350188923,0.001149372718528,0.001155230254164,-2.31987491526801,-0.635755623289451,-1.68411929197858 +Austria,0.000798202628981,0.001281408579409,0.000497692311054,0.001816091862394,-37.7089679430119,-102.886742958136,65.1777750151239 +Belgium and Luxembourg,0.001256337135977,0.003382876573705,0.000631758930243,0.002924158697606,-62.8618689270968,-67.764806590408,4.90293766331127 +Canada,0.001067427028986,0.003311317200849,0.001500480921522,0.004046988761472,-67.7642773482324,-76.9031683010262,9.13889095279377 +China,0.006336402700148,0.006312053501655,0.008481141027335,0.008489475151675,0.385757162658619,-0.132035071272213,0.517792233930846 +Colombia,0.001143805404577,0.001759894296862,0.001589600903747,0.002167456447169,-35.0071531786575,-32.8346733353407,-2.17247984331684 +Denmark,0.00050323041739,0.002830658107304,0.000468966771097,0.001655325645563,-82.2221406360923,-41.9110620037621,-40.3110786323302 +Finland,0.000610068350847,0.000995138267687,0.000641752307338,0.001126815682604,-38.6951169846291,-48.7433144736645,10.0481974890355 +France,0.000196743798133,0.000251194223358,0.000400037895658,0.000349051183571,-21.6766231712591,20.2977247668415,-41.9743479381007 +Germany,0.000296993609093,0.0007796591482,0.000843751335217,0.001508080132381,-61.9072501389756,-85.2075934332331,23.3003432942575 +Greece,0.000236487004439,0.000262408486393,0.000399698924333,0.000362787385234,-9.87829407125413,14.0664425936313,-23.9447366648854 +India,0.000995641274749,0.001068960354136,0.00075692959336,0.000778207220251,-6.85891474864963,-1.99049729104573,-4.8684174576039 +Ireland,0.001168780740978,0.00288159265274,0.00165533114553,0.002948986023008,-59.4397653718882,-44.8937456946865,-14.5460196772017 +Italy,0.000174604022898,0.000226521617593,0.000148767759288,0.000104783116671,-22.9194878821333,19.4174150285046,-42.3369029106379 +Japan,0.000389622578088,0.000411406249517,0.000549234036523,0.000544383908279,-5.29492963578894,1.1789145765787,-6.47384421236763 +Mexico,0.001136647506163,0.002047546235499,0.002140905661507,0.00309559965248,-44.4873338410455,-46.6262482586025,2.13891441755704 +Netherlands,0.000507168272818,0.001823023841301,0.000924799293113,0.002632046089668,-72.1798332348371,-93.6491755004949,21.4693422656578 +Norway,0.001101317578583,0.00184158657538,0.002265904811654,0.003338442161489,-40.1973497577241,-58.2398549258545,18.0425051681304 +Portugal,0.001878354692264,0.001854615832365,0.001807279347637,0.002900933548136,1.27998798918219,-58.9693122108206,60.2493002000027 +ROW,0.001631560747857,0.001650853305926,0.003524097501686,0.003560105747788,-1.16864157459685,-2.18118993205479,1.01254835745794 +South Korea,0.000803830303861,0.000800278950916,0.000976641171703,0.000937954618243,0.443764382514701,4.83413357500938,-4.39036919249468 +Spain,0.000281670372616,0.001230182145341,0.000305854769869,0.000951354817029,-77.103360369593,-52.4719082945887,-24.6314520750043 +Sweden,0.000395808939655,0.000587450563515,0.000389070758709,0.000376147380689,-32.6225959701753,2.19990903450217,-34.8225050046775 +United Kingdom,0.000278057767374,0.000696387347097,0.000355750548723,0.000632371989068,-60.0713929491938,-39.7223530120138,-20.3490399371801 +United States,0.000271486777104,0.000273057019739,0.000537900093653,0.000534921749744,-0.575060343012646,1.09074064909769,-1.66580099211035 diff --git a/output/table7.csv b/output/table7.csv new file mode 100644 index 0000000..95644cf --- /dev/null +++ b/output/table7.csv @@ -0,0 +1,26 @@ +"country_names","actual","kappa1972","nosectoral","nosectoral_kappa1972","trade_barriers","diversification","specialization" +"Australia",0.0014026420013772045,0.001378960672588717,0.0010219432288331234,0.0010263073818388613,1.7173317020006587,-0.31648132484772185,2.0338130268483807 +"Austria",0.0013255185911586426,0.0013780384150276475,0.0010178116073126502,0.0011441922694120366,-3.8112017267639975,-9.17105508244128,5.3598533556772825 +"Belgium and Luxembourg",0.0013644096749814898,0.0015265414352818155,0.0011968382415685455,0.0017185698084923534,-10.62085552040024,-34.17736033005162,23.556504809651383 +"Canada",0.0021110618680145236,0.00229373446284752,0.0019323020808104635,0.0021515917907098388,-7.96398178567803,-9.560379087086725,1.5963973014086852 +"China",0.009040542839152206,0.008964962932672672,0.006202193211006533,0.0061804219489621694,0.8430587727706597,0.24284832193805167,0.6002104508326079 +"Colombia",0.002879560304363159,0.003035403543060151,0.002646705274921909,0.002804650954380182,-5.134185174597186,-5.203449136751014,0.06926396215382762 +"Denmark",0.0018623833548421715,0.002115544871129362,0.0009991678257147932,0.0012206819262043642,-11.966728748799483,-10.470782421708597,-1.4959463270908862 +"Finland",0.0013201802464907389,0.0013628494505715063,0.0010128508097322407,0.001158918966399635,-3.130881702514848,-10.717849767348918,7.58696806483407 +"France",0.0010179602224660723,0.0010115336350304443,0.00036087166742716336,0.00036014527772852223,0.6353310669135217,0.07181073110033276,0.5635203358131889 +"Germany",0.001530816214681442,0.001536795789564172,0.0006510857890773057,0.0006672160482731854,-0.38909365338810986,-1.0496032918240958,0.660509638435986 +"Greece",0.0005821955998620784,0.0005601619850225883,0.00036004641626292554,0.0003616808102747184,3.933436296752904,-0.2917716759602914,4.2252079727131955 +"India",0.0013503017849341166,0.0013390589835479106,0.0010497000058585766,0.0010496977437140268,0.839604642091084,0.00016893539251063304,0.8394357066985734 +"Ireland",0.0020790620068622456,0.00240878551449376,0.001657103148764267,0.0019744368583550606,-13.688371407398245,-13.174012699818386,-0.5143587075798598 +"Italy",0.0008064628052495059,0.0008038425348569799,0.00020935445772243217,0.0002119922865809708,0.325968119240197,-0.3281524358508789,0.6541205550910758 +"Japan",0.00146173997937527,0.0014438142788829192,0.0005433576505885665,0.0005425994158245512,1.2415516839340242,0.05251608708302554,1.1890355968509987 +"Mexico",0.0011567734914683064,0.001466206238088201,0.003287726104199936,0.0038289225825312045,-21.10431251631875,-36.91134741296281,15.807034896644064 +"Netherlands",0.0018145095376838158,0.0019056922575109278,0.0011175383646229553,0.001359744022527908,-4.784755747825097,-12.709589229338818,7.924833481513721 +"Norway",0.0020784178304045697,0.0022359723326624446,0.0014053940884649109,0.0016097537110971326,-7.046352942581792,-9.139631096816125,2.093278154234334 +"Portugal",0.00201995796420253,0.0019708227676777466,0.0011151778408930457,0.0013000976762508375,2.4931311597683803,-9.382874928712436,11.876006088480814 +"ROW",0.0029076131063585807,0.0029011125802618047,0.0019344858730348774,0.001943468143865958,0.2240701081717181,-0.30961469376242234,0.5336848019341405 +"South Korea",0.0011133879458866734,0.0011398780625742153,0.0009372492771398101,0.0009582069327454676,-2.3239430213893755,-1.838587502800807,-0.4853555185885686 +"Spain",0.0015153596910778048,0.0016139333158390662,0.0006583953254103282,0.0007108049789318814,-6.107664040011099,-3.2473245955831804,-2.860339444427918 +"Sweden",0.0009515808470348284,0.0009478970278602352,0.0005809898344120913,0.0006230877278312339,0.38863073375268875,-4.441188460541293,4.8298191942939805 +"United Kingdom",0.0013096937992417353,0.0013334237471875387,0.0005407860601318473,0.0005755059268631257,-1.7796254188403815,-2.60381343923937,0.8241880203989885 +"United States",0.0007678562610699827,0.0007651615930574793,0.0004205641263900311,0.0004196666368046388,0.35216979484502,0.11729412369040007,0.23487567115461988 diff --git a/output/table8left.csv b/output/table8left.csv new file mode 100644 index 0000000..36ad1c4 --- /dev/null +++ b/output/table8left.csv @@ -0,0 +1,26 @@ +"country_names","actual","kappa1972","nosectoral","nosectoral_kappa1972","trade_barriers","diversification","specialization" +"Australia",0.00090185736312493,0.0009220465902012791,0.0010490657587801022,0.0010531249524365347,-2.1896102963671074,-0.44023736973490835,-1.7493729266321874 +"Austria",0.0005507578974139879,0.0009438622394221345,0.0007244771516078957,0.0018104474154089065,-41.64848699200201,-115.05601330824294,73.40752631624089 +"Belgium and Luxembourg",0.001047666813610721,0.0030331570585287394,0.0011590823687786017,0.004336371442971346,-65.45952638143633,-104.75188105603463,39.29235467459829 +"Canada",0.0006216827569383054,0.002196215249538581,0.0011230013116259754,0.0032726791313077448,-71.69299516206713,-97.88101690548827,26.188021743421114 +"China",0.006246859904502225,0.0062466887932535005,0.0071097217982485335,0.007109423014356666,0.0027392312053330257,0.0047830763106054665,-0.0020438451052724404 +"Colombia",0.0011044386613130986,0.001957888257063654,0.002534450403668208,0.003775128333876243,-43.59031178983206,-63.36816852197397,19.77785673214191 +"Denmark",0.00043716432877721105,0.001908637031988075,0.0004664388535275483,0.0012834019337484566,-77.09547067092942,-42.80348052190641,-34.29199014902301 +"Finland",0.0006077403479206098,0.000993412441285189,0.0010107925420738877,0.0016653435157809263,-38.822957850782586,-65.88914598857232,27.066188137789734 +"France",0.00019721275814437662,0.0002623925439239691,0.0002551890248213401,0.00018959807539314932,-24.840563228229144,24.997261144431153,-49.837824372660286 +"Germany",0.00024965414854752875,0.0005215946888297635,0.00043493461321929554,0.000685841483299757,-52.13637065445463,-48.10380079662805,-4.032569857826576 +"Greece",0.00029599284151738797,0.0003842499332294698,0.00044084141709963736,0.0004049521772698939,-22.968668067243538,9.340077050400112,-32.308745117643646 +"India",0.0010195218313093102,0.0012170782506387176,0.000861423550699732,0.0009404422253720899,-16.232022815766413,-6.492489257029224,-9.739533558737186 +"Ireland",0.0010739868137874743,0.0025106893564358153,0.0020857135615502736,0.0038872441571558693,-57.22342905407819,-71.7544203940489,14.53099133997071 +"Italy",0.0001894836311983514,0.0002615828497157844,0.00018350375764286311,0.00012680927603129184,-27.562670333995676,21.67362335610729,-49.23629369010296 +"Japan",0.0002985516216928643,0.00030453550470791894,0.00022322572986570175,0.00019908264389858606,-1.9649213055777452,7.927839478116486,-9.89276078369423 +"Mexico",0.0010620197229490975,0.0024253918651802285,0.005237573036324305,0.007484436753423765,-56.21244805032032,-92.63920397178777,36.42675592146743 +"Netherlands",0.00035004519728509565,0.001239395615602087,0.0006999721671339968,0.0023166226962708517,-71.75678267063687,-130.43861933878966,58.68183666815278 +"Norway",0.0008198455404722457,0.0012507759721127277,0.00215255564446347,0.0032218112530830864,-34.45304684839628,-85.48738003125379,51.03433318285751 +"Portugal",0.0015230654275230177,0.0016600919190775628,0.0017587549589213806,0.0027143736582973584,-8.254150868385915,-57.564204029555874,49.31005316116996 +"ROW",0.0016480930975918018,0.0016342447171151606,0.0023905493570876677,0.002414243625107509,0.8473871955411276,-1.4498604628606415,2.2972476584017825 +"South Korea",0.0008499582139133565,0.0008620277124845234,0.000801718608221095,0.000877558048941463,-1.4001288353457257,-8.7977961290577,7.397667293711974 +"Spain",0.0002533060270032982,0.0012358707890745787,0.0002566209902823857,0.0007933870318710123,-79.50384221048108,-43.43221365322159,-36.07162855725948 +"Sweden",0.00035997345079878456,0.0005917811623404101,0.0005441527551669054,0.0006907698857788949,-39.17118798186463,-24.775565689205067,-14.395622292659562 +"United Kingdom",0.0002496713960348226,0.0006013898728611321,0.0001828438338125032,0.0003608954390313219,-58.48426997165704,-29.606684989844,-28.877584981813044 +"United States",0.00026225657403373574,0.000265726227382203,0.00035744294717386427,0.0003376696803096171,-1.3057248366668541,7.441217624260557,-8.746942460927412 diff --git a/output/table8right.csv b/output/table8right.csv new file mode 100644 index 0000000..9964760 --- /dev/null +++ b/output/table8right.csv @@ -0,0 +1,26 @@ +"country_names","actual","kappa1972","nosectoral","nosectoral_kappa1972","trade_barriers","diversification","specialization" +"Australia",0.0009043624016923799,0.0009225061447556209,0.0010530380974969752,0.0010535878480031273,-1.966788315328505,-0.059593153853487776,-1.9071951614750053 +"Austria",0.0005320203108317246,0.0009482287939496816,0.0007456877435888361,0.001809665290992432,-43.89325506392958,-112.20683807457301,68.31358301064346 +"Belgium and Luxembourg",0.0010416125937756204,0.0030141337472776603,0.0011620789096446773,0.004335936362543046,-65.44238971756326,-105.2991578679934,39.85676815043015 +"Canada",0.0006217070176897112,0.0021928248040594227,0.001122533183894564,0.0032698261787415446,-71.64812179528485,-97.92360022888501,26.27547843360017 +"China",0.00617025520460554,0.006155142413153406,0.006958094890011737,0.006981666879466121,0.2455311418926464,-0.3829641602444657,0.6284953021371121 +"Colombia",0.0011168819658203277,0.0019540304771959427,0.002539662949539413,0.0037785848819304863,-42.84214198014625,-63.40340884390612,20.56126686375988 +"Denmark",0.00044461767040170785,0.0020092484139835223,0.00044881517451877164,0.001287403676396916,-77.87144350557371,-41.73642721536679,-36.13501629020692 +"Finland",0.0006101938432096402,0.0009962668753887873,0.001008406221785407,0.001663900612577771,-38.75196914767284,-65.79506023790675,27.04309109023392 +"France",0.0001976235067724716,0.00026278258383066473,0.00025311245651045227,0.00018973464325894922,-24.795812609933535,24.117965630607877,-48.91377824054141 +"Germany",0.0002498329974398631,0.0005211679769600926,0.0004318051152666981,0.0006860055877331027,-52.06286485652714,-48.775151909586626,-3.2877129469405 +"Greece",0.0003008419359106557,0.00038298902913659876,0.00044658819072572643,0.0004078857448839801,-21.44894160836238,10.105366706977533,-31.554308315339913 +"India",0.001018272214806384,0.0012171115771111595,0.0008663778257630104,0.0009380255271065724,-16.336987178835734,-5.886699518019486,-10.450287660816256 +"Ireland",0.0010035323268517107,0.0025548045880616397,0.0021722238800337594,0.0038170086645287647,-60.71980097651607,-64.38006226311512,3.6602612865990416 +"Italy",0.00019108425737642432,0.00026319856348793076,0.00018292794500989707,0.0001267769885456824,-27.399202015330648,21.33406646301454,-48.7332684783452 +"Japan",0.00029743077580243114,0.000305358821735074,0.0002233896685598324,0.0001987721376788119,-2.596304861145016,8.061837133488291,-10.658141994633308 +"Mexico",0.0010717016558017942,0.002429502228077558,0.005221536347969808,0.007485124260941332,-55.88801510794163,-93.17085149424535,37.282836386303735 +"Netherlands",0.00035111728862372287,0.0012414812235079392,0.0006985501561976713,0.002315652865270909,-71.71787361941705,-130.2559135372132,58.53803991779614 +"Norway",0.0008201506670716492,0.0012563936457545138,0.0021472010543700025,0.003226162153493697,-34.721838983902494,-85.87763100916797,51.15579202526547 +"Portugal",0.0014832198236911039,0.0016644992046420588,0.0017942565773909538,0.0027197454735943837,-10.890926258504164,-55.60164244130421,44.710716182800034 +"ROW",0.0016507990921913519,0.00163132347227275,0.0023937298926748206,0.0024140159061907603,1.193853962725646,-1.2435310262334005,2.4373849889590464 +"South Korea",0.0008503033035023546,0.0008638468762395069,0.0008115664963555038,0.0008772943185416064,-1.5678210004196667,-7.6087352971893125,6.040914296769646 +"Spain",0.0002543766806537269,0.0012375397189963487,0.000258512079693564,0.0007950731211271805,-79.44496837159879,-43.3570763990323,-36.0878919725665 +"Sweden",0.00035425244591741166,0.0005923279529931928,0.0005397380684601095,0.0006911295863730741,-40.19319126722307,-25.558732649361282,-14.634458617861782 +"United Kingdom",0.0002490182529469726,0.000600182168414035,0.00018273641259620034,0.00036093134978895013,-58.50955492313333,-29.690141855367855,-28.819413067765467 +"United States",0.0002609039614076888,0.00026619209518317677,0.0003542802148492225,0.0003377731888412639,-1.9865855790529787,6.201170623267197,-8.187756202320175 diff --git a/trade_share.pdf b/output/trade_share.pdf similarity index 100% rename from trade_share.pdf rename to output/trade_share.pdf diff --git a/output/volatility_by_decade.csv b/output/volatility_by_decade.csv new file mode 100644 index 0000000..1e5ef1f --- /dev/null +++ b/output/volatility_by_decade.csv @@ -0,0 +1,5 @@ +decades,trade_barriers,diversification,specialization +1970s,-3.464541177897156,-15.772863707051059,12.308322529153914 +1980s,-12.260564964718874,-35.89762112461589,23.637056159897014 +1990s,-33.9882118161701,-66.15711425672899,32.16890244055889 +2000s,-66.96162254781132,-64.55860169945419,-2.4030208483571216