There are 3 files in this directory:
Data file:
     invest.txt
m files:
     CRE_investment.m: include specification testing, estimation and inference of \gamma and \beta for the investment data
     lcsb.m: local constant kernel smoothing regression for the boundary point, used in CRE_investment.m
Make sure they are in the working directory of Matlab and run CRE_investment.m.