Commit 66b72e81 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Fix bug in test for stochastic singularity

parent c1def960
......@@ -33,8 +33,8 @@ function DynareResults = initial_estimation_checks(objective_function,xparam1,Dy
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!'])
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!'])
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