Commit 45cc328b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge pull request #460 from JohannesPfeifer/stoch_singularity_fix

Fix bug in test for stochastic singularity
parents 26acc2ec 66b72e81
...@@ -33,8 +33,8 @@ function DynareResults = initial_estimation_checks(objective_function,xparam1,Dy ...@@ -33,8 +33,8 @@ function DynareResults = initial_estimation_checks(objective_function,xparam1,Dy
if DynareDataset.info.nvobs>Model.exo_nbr+EstimatedParameters.nvn if DynareDataset.info.nvobs>Model.exo_nbr+EstimatedParameters.nvn
error(['initial_estimation_checks:: Estimation can''t take place because there are less declared shocks than observed variables!']) error(['initial_estimation_checks:: Estimation can''t take place because there are less declared shocks than observed variables!'])
end end
if DynareDataset.info.nvobs>find(diag(Model.Sigma_e))+EstimatedParameters.nvn if DynareDataset.info.nvobs>length(find(diag(Model.Sigma_e)))+EstimatedParameters.nvn
error(['initial_estimation_checks:: Estimation can''t take place because too many shocks have been calibrated with a zero variance!']) error(['initial_estimation_checks:: Estimation can''t take place because too many shocks have been calibrated with a zero variance!'])
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment