-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfredMDprettylabel.m
122 lines (117 loc) · 4.03 KB
/
fredMDprettylabel.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
function pcode = fredMDprettylabel(ncode, doShort)
% FREDMDPRETTYLABEL ...
%
% ...
%% VERSION INFO
% AUTHOR : Elmar Mertens
% $DATE : 09-Dec-2019 18:55:22 $
% $Revision : 1.00 $
% DEVELOPED : 9.7.0.1247435 (R2019b) Update 2
% FILENAME : fredmdPrettylabel.m
if nargin <2 || isempty(doShort)
doShort = true;
end
pcode = cell(size(ncode));
if doShort
for n = 1 : length(ncode)
switch ncode{n}
case 'RPI'
pcode{n} = 'Real Income';
case 'DPCERA3M086SBEA'
pcode{n} = 'Real Consumption';
case 'CMRMTSPLx'
pcode{n} = 'Real M\&T Sales';
case 'INDPRO'
pcode{n} = 'IP';
case 'CUMFNS'
pcode{n} = 'Capacity Utilization';
case 'UNRATE'
pcode{n} = 'Unemployment Rate';
case 'PAYEMS'
pcode{n} = 'Nonfarm Payrolls';
case 'CES0600000007'
pcode{n} = 'Hours';
case 'CES0600000008'
pcode{n} = 'Hourly Earnings';
case 'WPSFD49207'
pcode{n} = 'PPI (Fin. Goods)';
case 'PPICMM'
pcode{n} = 'PPI (Metals)';
case 'PCEPI'
pcode{n} = 'PCE Prices';
case 'CPIAUCSL'
pcode{n} = 'CPI';
case 'FEDFUNDS'
pcode{n} = 'Federal Funds Rate';
case 'HOUST'
pcode{n} = 'Housing Starts';
case {'S_P500', 'SP500'}
pcode{n} = 'S\&P 500';
case 'EXUSUKx'
pcode{n} = 'USD / GBP FX Rate';
case 'GS1'
pcode{n} = '1-Year Yield';
case 'GS5'
pcode{n} = '5-Year Yield';
case 'GS10'
pcode{n} = '10-Year Yield';
case 'BAAFFM'
pcode{n} = 'Baa Spread';
case 'CYCLE1S_ASSETS'
pcode{n} = 'Cyc. Assets';
otherwise
pcode{n}= ncode{n};
end % switch
end % for n
else
for n = 1 : length(ncode)
switch ncode{n}
case 'RPI'
pcode{n} = 'Real Personal Income';
case 'DPCERA3M086SBEA'
pcode{n} = 'Real Personal Consumption Expenditures';
case 'CMRMTSPLx'
pcode{n} = 'Real Manu. and Trade Industries Sales';
case 'INDPRO'
pcode{n} = 'IP Index';
case 'CUMFNS'
pcode{n} = 'Capacity Utilization: Manufacturing';
case 'UNRATE'
pcode{n} = 'Civilian Unemployment Rate';
case 'PAYEMS'
pcode{n} = 'All Employees: Total nonfarm';
case 'CES0600000007'
pcode{n} = 'Avg Weekly Hours : Goods-Producing';
case 'CES0600000008'
pcode{n} = 'Avg Hourly Earnings : Goods-Producing';
case 'WPSFD49207'
pcode{n} = 'PPI: Finished Goods';
case 'PPICMM'
pcode{n} = 'PPI: Metals and metal products';
case 'PCEPI'
pcode{n} = 'Personal Cons. Expend.: Chain Index';
case 'CPIAUCSL'
pcode{n} = 'CPI';
case 'FEDFUNDS'
pcode{n} = 'Effective Federal Funds Rate';
case 'HOUST'
pcode{n} = 'Housing Starts: Total New Privately Owned';
case {'S_P500', 'SP500'}
pcode{n} = 'S\&P 500';
case 'EXUSUKx'
pcode{n} = 'USD / GBP Foreign Exchange Rate';
case 'GS1'
pcode{n} = '1-Year Treasury Rate';
case 'GS5'
pcode{n} = '5-Year Treasury Rate';
case 'GS10'
pcode{n} = '10-Year Treasury Rate';
case 'BAAFFM'
pcode{n} = 'Moody''s Baa Corporate Bond Minus FEDFUNDS';
case 'CYCLE1S_ASSETS'
pcode{n} = 'Cycle1s Assets';
otherwise
pcode{n}= ncode{n};
end % switch
end % for n
end % if doShort