How to run: Use Matlab *Before running below: Must change save location variable "loc" in each 'arun_' file Local shock results/plots [Figure 3] --> arun_local.m [Run time: 743 seconds] Spillover plot [Figure 4] --> arun_spillovers.m [315 seconds] Market shock results/plots [Figure 2, 5-7] --> arun_market.m [1083 seconds] *Run times computed on 2-years-old Dell Inspiron laptop. -- Other info: Operating system --> Windows 10 64-bit Matlab version --> R2016a (9.0.0.341360) win64 -- List of files: [Note: all have extension ".m"] - 3 arun_["local" or "spillovers" or "market"] **runs relevant codes in order - 4 gen_["main" or "os" (os: order splitting)]_["local" or "market"] **computes equilibrium given parameters - 2 zcalc_["eqlobj" or "mktqlty"] **computes equilibrium objects and market quality measures, respectively (used in gen_... files) - 2 plot_comp_["agg" or "PD"] **creates Figures 5 (_agg) and 7 (_PD) - 3 plot_main_["local" or "market" or "spillovers"] **creates Figures 3, 2, 4 (respectively) - 2 plot_os_["local" or "market"] **creates Figures 8, 6 (respectively) - solve_eql_os **numerically solves equilibrium of Theorem 2 - 3 zprep_["lc" (lc: local) or "mkt" or "spillover"]_plot **creates legends, titles, etc., for plots