Skip to content
No description, website, or topics provided.
C++ MATLAB Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cfuncs
data
figs_tabs
psid
.gitignore
LICENSE
MC.m
README.md
ceq.m
compile_mex.m
datafuns.m
estimate.m
funs.m
model.m
outfun.m
run_00_all.m
run_01_data.m
run_02_ceq.m
run_03_estimate.m
run_04_estimate_prefs.m
run_05_robustness.m
run_06_monte_carlo.m
run_07_tables.m
run_08_Commault.m
stop_optimizer.txt
tabs.m

README.md

LearningPerm

Code for "Can Consumers Distinguish Persistent from Transitory Income Shocks?", Druedahl and Jørgensen, 2019.

Requirements

  1. MATLAB
  2. C++ compiler

The code was run and tested with "MATLAB 2018b" and "Intel Parallel Studio XE 2018 for C++" on a 64-bit Windows machine.

vectorclass: The code relies on the vectorclass library developed by Agnar Fog.

Alternative C++ compiler: You can alternatively install the "MinGW GCC" C++ compiler extension to MATLAB. Set intel = 0 in run_00_all.m. If you use another MATLAB version change the path to libgomp.a in compile_mex.m accordingly.

ReadMe

Everything can be run from run_00_all.m. It calls all the run_*.m files in the correct order.

  1. Input: PSID data in psid/*.txt.
  2. Output: All figures and tables are saved in fig_tabs/.

PSID data

The used PSID data is found in psid/*.txt.

To reproduce these txt-files run psid/construct_data.do varying the value of scalar group from 0 to 1 and 2. The code uses psid/data3.dta taken from the replication package for Blundell et. al. (2008). The psid/construct_data.do file is based on mindist_AER.do from this replication package.

You can’t perform that action at this time.