Skip to content
Snippets Groups Projects
Verified Commit dbdda7bf authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge branch 'Pinf' of git.dynare.org:JohannesPfeifer/dynare

Ref. !2105
parents d554b797 801baacc
No related branches found
No related tags found
No related merge requests found
function [trend_addition, trend_coeff]=compute_trend_coefficients(M_,DynareOptions,nvarobs,ntobs) function [trend_addition, trend_coeff]=compute_trend_coefficients(M_,DynareOptions,nvarobs,ntobs)
% [trend_addition, trend_coeff]=compute_trend_coefficients(DynareOptions,nvarobs,ntobs) % [trend_addition, trend_coeff]=compute_trend_coefficients(M_,DynareOptions,nvarobs,ntobs)
% Computes the trend coefficiencts and the trend, accounting for % Computes the trend coefficiencts and the trend, accounting for
% prefiltering % prefiltering
% %
......
...@@ -107,9 +107,24 @@ P_obs (log(mst)-gam); ...@@ -107,9 +107,24 @@ P_obs (log(mst)-gam);
Y_obs (gam); Y_obs (gam);
end; end;
fsdat_simul;
P_obs_data=log(P_obs(1:192));
Y_obs_data=log(Y_obs(1:192));
estimation(order=1, datafile=fsdat_simul, mode_compute=0,nobs=192, loglinear,diffuse_filter, smoother,smoothed_state_uncertainty) m P c e W R k d n l gy_obs gp_obs y dA; estimation(order=1, datafile=fsdat_simul, mode_compute=0,nobs=192, loglinear,diffuse_filter, smoother,smoothed_state_uncertainty) m P c e W R k d n l gy_obs gp_obs y dA;
if max(abs(oo_.SmoothedVariables.Y_obs-Y_obs_data))>1e-10 || max(abs(oo_.SmoothedVariables.P_obs-P_obs_data))>1e-10
error('Smoothed observables do not match')
end
estimation(order=1, datafile=fsdat_simul, mode_compute=0,nobs=192, loglinear,diffuse_filter, smoother,kalman_algo=3,smoothed_state_uncertainty) m P c e W R k d n l gy_obs gp_obs y dA; estimation(order=1, datafile=fsdat_simul, mode_compute=0,nobs=192, loglinear,diffuse_filter, smoother,kalman_algo=3,smoothed_state_uncertainty) m P c e W R k d n l gy_obs gp_obs y dA;
if max(abs(oo_.SmoothedVariables.Y_obs-Y_obs_data))>1e-10 || max(abs(oo_.SmoothedVariables.P_obs-P_obs_data))>1e-10
error('Smoothed observables do not match')
end
estimation(order=1, datafile=fsdat_simul, mode_compute=0,nobs=192, loglinear,diffuse_filter, smoother,kalman_algo=4,smoothed_state_uncertainty) m P c e W R k d n l gy_obs gp_obs y dA; estimation(order=1, datafile=fsdat_simul, mode_compute=0,nobs=192, loglinear,diffuse_filter, smoother,kalman_algo=4,smoothed_state_uncertainty) m P c e W R k d n l gy_obs gp_obs y dA;
if max(abs(oo_.SmoothedVariables.Y_obs-Y_obs_data))>1e-10 || max(abs(oo_.SmoothedVariables.P_obs-P_obs_data))>1e-10
error('Smoothed observables do not match')
end
/* /*
* The following lines were used to generate the data file. If you want to * The following lines were used to generate the data file. If you want to
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment