corrected bugs in estimation of models with measurement errors
parent
848e53c1f2
commit
3db736f31d
|
@ -191,7 +191,7 @@ data1 = Y-trend;
|
|||
if any(any(H ~= 0)) % should be replaced by a flag
|
||||
if kalman_algo == 1
|
||||
[alphahat,epsilonhat,etahat,ahat,P,aK,PK,decomp] = ...
|
||||
kalman_smoother(ST,Z,R1,Q,H,Pinf,Pstar,data1,nobs,np,smpl);
|
||||
kalman_smoother(T,R,Q,H,Pstar,data1,start,mf,kalman_tol,riccati_tol);
|
||||
if all(alphahat(:)==0)
|
||||
kalman_algo = 2;
|
||||
if ~estim_params_.ncn
|
||||
|
|
|
@ -90,7 +90,7 @@ if nvn
|
|||
bayestopt_.p3 = [ bayestopt_.p3; estim_params_.var_endo(:,8)];
|
||||
bayestopt_.p4 = [ bayestopt_.p4; estim_params_.var_endo(:,9)];
|
||||
bayestopt_.jscale = [ bayestopt_.jscale; estim_params_.var_endo(:,10)];
|
||||
bayestopt_.name = cellstr(strvcat(char(bayestopt_.name), M_.endo_names(estim_params_.var_endo(:,1),:)));
|
||||
bayestopt_.name = cellstr(strvcat(char(bayestopt_.name), options_.varobs(estim_params_.var_endo(:,1),:)));
|
||||
end
|
||||
if ncx
|
||||
xparam1 = [xparam1; estim_params_.corrx(:,3)];
|
||||
|
|
Loading…
Reference in New Issue