MS-SBVAR: support non 4 digit years (fix thanks to Margarita Zabelina)
parent
837451c724
commit
dd1a48c7c7
|
@ -39,8 +39,7 @@ hornum = cell(length(vyrs),1); % horizontal year (number)
|
||||||
count=0;
|
count=0;
|
||||||
for k=vyrs'
|
for k=vyrs'
|
||||||
count=count+1;
|
count=count+1;
|
||||||
jnk=num2str(k);
|
hornum{count}=num2str(k);
|
||||||
hornum{count}=jnk(3:4); % e.g., with '1990', we have '90'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
count=0;
|
count=0;
|
||||||
|
|
|
@ -90,8 +90,7 @@ qmEnd=options_.ms.final_subperiod;
|
||||||
if options_.forecast<1
|
if options_.forecast<1
|
||||||
error('To be safe, the number of forecast years should be at least 1')
|
error('To be safe, the number of forecast years should be at least 1')
|
||||||
end
|
end
|
||||||
ystr=num2str(yrEnd);
|
forelabel = [num2str(yrEnd) ':' num2str(qmEnd) ' Forecast'];
|
||||||
forelabel = [ ystr(3:4) ':' num2str(qmEnd) ' Forecast'];
|
|
||||||
|
|
||||||
nSample=(yrEnd-yrStart)*options_.ms.freq + (qmEnd-qmStart+1);
|
nSample=(yrEnd-yrStart)*options_.ms.freq + (qmEnd-qmStart+1);
|
||||||
if qmEnd==options_.ms.freq
|
if qmEnd==options_.ms.freq
|
||||||
|
|
Loading…
Reference in New Issue