Fixed bug (options_.varobs is a row cell array of strings) + Cosmetic changes.
parent
195a3f8fff
commit
11f00d041e
|
@ -244,7 +244,6 @@ else
|
||||||
end
|
end
|
||||||
ifil = fout(end).ifil;
|
ifil = fout(end).ifil;
|
||||||
|
|
||||||
% ??????????
|
|
||||||
stock_gend=gend;
|
stock_gend=gend;
|
||||||
stock_data=Y;
|
stock_data=Y;
|
||||||
save([DirectoryName '/' M_.fname '_data.mat'],'stock_gend','stock_data');
|
save([DirectoryName '/' M_.fname '_data.mat'],'stock_gend','stock_data');
|
||||||
|
|
|
@ -140,7 +140,7 @@ if run_smoother
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if nvn
|
if nvn
|
||||||
stock_error = NaN(size(varobs,1),gend,MAX_nerro);
|
stock_error = NaN(length(varobs),gend,MAX_nerro);
|
||||||
end
|
end
|
||||||
if naK
|
if naK
|
||||||
stock_filter_step_ahead =NaN(length(options_.filter_step_ahead),endo_nbr,gend+max(options_.filter_step_ahead),MAX_naK);
|
stock_filter_step_ahead =NaN(length(options_.filter_step_ahead),endo_nbr,gend+max(options_.filter_step_ahead),MAX_naK);
|
||||||
|
@ -150,10 +150,6 @@ stock_logpo = NaN(MAX_nruns,1);
|
||||||
stock_ys = NaN(MAX_nruns,endo_nbr);
|
stock_ys = NaN(MAX_nruns,endo_nbr);
|
||||||
|
|
||||||
for b=fpar:B
|
for b=fpar:B
|
||||||
|
|
||||||
% [deep, logpo] = GetOneDraw(type);
|
|
||||||
% set_all_parameters(deep);
|
|
||||||
% dr = resol(oo_.steady_state,0);
|
|
||||||
if strcmpi(type,'prior')
|
if strcmpi(type,'prior')
|
||||||
|
|
||||||
[deep, logpo] = GetOneDraw(type);
|
[deep, logpo] = GetOneDraw(type);
|
||||||
|
@ -304,22 +300,7 @@ for b=fpar:B
|
||||||
end
|
end
|
||||||
irun(7) = 1;
|
irun(7) = 1;
|
||||||
end
|
end
|
||||||
|
|
||||||
% if moments_varendo && (irun(8) > MAX_momentsno || b == B)
|
|
||||||
% stock = stock_moments(1:irun(8)-1);
|
|
||||||
% ifil(8) = ifil(8) + 1;
|
|
||||||
% save([DirectoryName '/' M_.fname '_moments' int2str(ifil(8)) '.mat'],'stock');
|
|
||||||
% if RemoteFlag==1,
|
|
||||||
% OutputFileName_moments = [OutputFileName_moments; {[DirectoryName filesep], [M_.fname '_moments' int2str(ifil(8)) '.mat']}];
|
|
||||||
% end
|
|
||||||
% irun(8) = 1;
|
|
||||||
% end
|
|
||||||
|
|
||||||
% DirectoryName=TempPath;
|
|
||||||
|
|
||||||
|
|
||||||
dyn_waitbar((b-fpar+1)/(B-fpar+1),h);
|
dyn_waitbar((b-fpar+1)/(B-fpar+1),h);
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
myoutput.ifil=ifil;
|
myoutput.ifil=ifil;
|
||||||
|
@ -332,7 +313,6 @@ if RemoteFlag==1,
|
||||||
OutputFileName_param;
|
OutputFileName_param;
|
||||||
OutputFileName_forc_mean;
|
OutputFileName_forc_mean;
|
||||||
OutputFileName_forc_point];
|
OutputFileName_forc_point];
|
||||||
% OutputFileName_moments];
|
|
||||||
end
|
end
|
||||||
|
|
||||||
dyn_waitbar_close(h);
|
dyn_waitbar_close(h);
|
||||||
|
|
Loading…
Reference in New Issue