Macroeconomic News in Asset Pricing and Reality
Greg Duffee

This data appendix contains all data and code for producing the tables
and figure in the text and in the Online Appendix.

The directory 'externalDataSets' contains the raw data, in Excel
files, downloaded from various sources.  The sources are in
'fileDescriptions.txt', contained in that directory.

The directory 'constructedDataSets' contains Excel files that are used
in estimation.  Since these Excel files are already in the directory,
they do not need to be constructed again.  Matlab code used to
construct some of these Excel files is in
'matlabCode\constructDataFiles'.  The first step is to execute the
code in 'construct2lagData.m'  This uses a real-time NIPA dataset to
construct some intermediate data.  A data file with all of the
Greenbook information is then constructed with
'constructGreenbookData.m'  The Online Appendix uses SPF data to
confirm some of the results.  To construct these data, first execute
'constructSPFLogLevelForecasts.m', then execute 'constructSPFData.m'.

The above code constructs all of the data sets necessary to construct
the paper's tables that are not tied to the dynamic model in the
paper.  These are Tables 1 through 5 in the main text and Tables IA 1
through IA 7 in the Online Appendix.  Code to create these tables is
in 'matlabCode/regressionTables'.  A note about this.  I have my one
code to do OLS estimation with various types of standard errors.  I
keep it in a directory that is automatically loaded by my Matlab
setup, but for this appendix I include it in
'matlabCode\regressionTables' and in 'matlabCode\model'.  

Model estimation is complicated.  Many functions are in
'matlabCode\model'.  The descriptions of of the function code
generally points to an equation in the text or, more often, in the
internet appendix that the matlab code produces.  Model estimates for
three separate time periods are in 'constructedDataSets'.  They are in
the Excel files 'paramEstimates***Samp_out.xlsx', and, for the late
time period where lag is on the boundary of the parameter space
(lag=0), in 'paramEstimatesLateSampBoundary_out.xlsx'.  These files
are constructed using the input files, where '_out' is replaced with
'_in'.  The code 'matlabCode\model\estimateModel' produces the Excel
files with parameter estimates.  See the description at the top of
that code.

Given the parameter estimates, the remaining tables in the paper, and
the figure, are constructed with code in 'matlabCode\model'.


