-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfredMDshortlabel.m
70 lines (65 loc) · 1.8 KB
/
fredMDshortlabel.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
function pcode = fredMDshortlabel(ncode)
% 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
pcode = cell(size(ncode));
for n = 1 : length(ncode)
switch ncode{n}
case 'RPI'
pcode{n} = 'Income';
case 'DPCERA3M086SBEA'
pcode{n} = 'Consumption';
case 'CMRMTSPLx'
pcode{n} = 'Sales';
case 'INDPRO'
pcode{n} = 'IP';
case 'CUMFNS'
pcode{n} = 'Cap. Util.';
case 'UNRATE'
pcode{n} = 'Unemp.';
case 'PAYEMS'
pcode{n} = 'Nfm Pyrlls';
case 'CES0600000007'
pcode{n} = 'Hours';
case 'CES0600000008'
pcode{n} = 'H. Earnings';
case 'WPSFD49207'
pcode{n} = 'PPI (Fin.)';
case 'PPICMM'
pcode{n} = 'PPI (Metals)';
case 'PCEPI'
pcode{n} = 'PCE Prices';
case 'CPIAUCSL'
pcode{n} = 'CPI';
case 'FEDFUNDS'
pcode{n} = 'FFR';
case {'WUXIASHADOWRATE', 'KRIPPNERSHADOWRATE'}
pcode{n} = 'Policy Rate';
case 'TB3MS'
pcode{n} = '3m T-Bill';
case 'HOUST'
pcode{n} = 'Hsng Strts';
case {'S_P500', 'SP500'}
pcode{n} = 'S\&P 500';
case 'EXUSUKx'
pcode{n} = 'USD / GBP';
case 'GS1'
pcode{n} = '1y Treas';
case 'GS5'
pcode{n} = '5y Treas';
case 'GS10'
pcode{n} = '10y Treas';
case 'GS20'
pcode{n} = '20y Treas';
case 'BAAFFM'
pcode{n} = 'Baa';
otherwise
pcode{n}= ncode{n};
end % switch
end % for n