-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathfredMDprettylabel.m
146 lines (141 loc) · 5.15 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
function pcode = fredMDprettylabel(ncode, doShort)
% FREDMDPRETTYLABEL ...
%
% ...
%% VERSION INFO
% AUTHOR : Elmar Mertens
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';
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 'DSERRA3M086SBEA'
pcode{n} = 'PCE Services Cons.';
case 'DSERRG3M086SBEA'
pcode{n} = 'PCE Services Prices';
case 'PCEPI'
pcode{n} = 'PCE Prices';
case 'PCEPILFE'
pcode{n} = 'PCE Core Prices';
case 'CPIAUCSL'
pcode{n} = 'CPI';
case 'FEDFUNDS'
pcode{n} = 'Federal Funds Rate';
case {'WUXIASHADOWRATE', 'KRIPPNERSHADOWRATE'}
pcode{n} = 'Policy Rate';
case 'TB3MS'
pcode{n} = '3m Treasury Bill';
case 'HOUST'
pcode{n} = 'Housing Starts';
case {'S_P500', 'SP500'}
pcode{n} = 'S\&P 500';
case 'EXUSUKx'
pcode{n} = 'USD / GBP FX Rate';
case 'TB6MS'
pcode{n} = '6-Month Tbill';
case 'BAA'
pcode{n} = 'BAA Yield';
case 'GS1'
pcode{n} = '1-Year Yield';
case 'GS5'
pcode{n} = '5-Year Yield';
case 'GS10'
pcode{n} = '10-Year Yield';
case 'GS20'
pcode{n} = '20-Year Yield';
case 'BAAFFM'
pcode{n} = 'Baa Spread';
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 'DSERRA3M086SBEA'
pcode{n} = 'Personal Cons. Expend. Services: Chain Quantity Index';
case 'DSERRG3M086SBEA'
pcode{n} = 'Personal Cons. Expend. Services: Chain Price Index';
case 'PCEPI'
pcode{n} = 'Personal Cons. Expend.: Chain Price Index';
case 'PCEPILFE'
pcode{n} = 'Personal Cons. Expend. Less Fodd and Energy: Chain Price Index';
case 'CPIAUCSL'
pcode{n} = 'CPI';
case 'FEDFUNDS'
pcode{n} = 'Effective Federal Funds Rate';
case {'WUXIASHADOWRATE', 'KRIPPNERSHADOWRATE'}
pcode{n} = 'Policy Rate';
case 'TB3MS'
pcode{n} = '3-month Treasury Bill';
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 'TB6MS'
pcode{n} = '6-Month Treasury Bill';
case 'BAA'
pcode{n} = 'BAA Corporate Bond Yield';
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 'GS20'
pcode{n} = '20-Year Treasury Rate';
case 'BAAFFM'
pcode{n} = 'Moody''s Baa Corporate Bond Minus FEDFUNDS';
otherwise
pcode{n}= ncode{n};
end % switch
end % for n
end % if doShort