Skip to content
Snippets Groups Projects
Commit dd1a48c7 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

MS-SBVAR: support non 4 digit years (fix thanks to Margarita Zabelina)

parent 837451c7
Branches
Tags
No related merge requests found
......@@ -39,8 +39,7 @@ hornum = cell(length(vyrs),1); % horizontal year (number)
count=0;
for k=vyrs'
count=count+1;
jnk=num2str(k);
hornum{count}=jnk(3:4); % e.g., with '1990', we have '90'
hornum{count}=num2str(k);
end
count=0;
......
......@@ -90,8 +90,7 @@ qmEnd=options_.ms.final_subperiod;
if options_.forecast<1
error('To be safe, the number of forecast years should be at least 1')
end
ystr=num2str(yrEnd);
forelabel = [ ystr(3:4) ':' num2str(qmEnd) ' Forecast'];
forelabel = [num2str(yrEnd) ':' num2str(qmEnd) ' Forecast'];
nSample=(yrEnd-yrStart)*options_.ms.freq + (qmEnd-qmStart+1);
if qmEnd==options_.ms.freq
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment