% MasterIdeaPF.m
%
%  Master program to generate the results in
%  "Are Ideas Getting Harder to Find?"

clear all; global MasterCase MasterNote Lambda StopForFigLabels;

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% EDIT THESE TWO LINES TO INCLUE THE CORRECT PATH
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd path/to/IdeaPFPrograms/
path('path/to/IdeaPFPrograms/ChadMatlab:',path)

% MainResults
MasterCase='Main';
MasterNote='Main Benchmark Case';
Lambda=1;
StopForFigLabels=0; % Set to 1 to pause so that fig labels can be adjusted when necessary
cd Aggregate; AggregateBLSIPP; cd ..
cd MooresLaw; IntelGraph; cd ..
cd Seeds; SeedYields; cd ..    
cd Pharma; NMEGraph; cd ..
cd Mortality; Cancer; BreastCancer; HeartDisease; cd ..
cd Compustat; MasterCompustat; cd .. 

% Lambda = 3/4 Robustness check    
%  Reports Scientists^Lambda everwhere
MasterCase='Lambda';
MasterNote='Robustness check -- diminishing returns to R&D: reports S^Lambda everywhere';
Lambda=3/4;
StopForFigLabels=0; % Set to 1 to pause so that fig labels can be adjusted when necessary
cd Aggregate; AggregateBLSIPP; cd ..
cd MooresLaw; IntelGraph; cd ..
cd Seeds; SeedYields; cd ..    
cd Pharma; NMEGraph; cd ..
cd Mortality; Cancer; BreastCancer; HeartDisease; cd ..
cd Compustat; MasterCompustat; cd .. 

