Code for "Can Consumers Distinguish Persistent from Transitory Income Shocks?", Druedahl and Jørgensen, 2019.
- 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
Everything can be run from
run_00_all.m. It calls all the
run_*.m files in the correct order.
- Input: PSID data in
- Output: All figures and tables are saved in
The used PSID data is found in
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.