Skip to content
Snippets Groups Projects
Commit 0f24420d authored by adjemian's avatar adjemian
Browse files

Added a test to warn the user when he tries to estimate a model with non zero...

Added a test to warn the user when he tries to estimate a model with non zero steady state (for the observed endogenous variables) using demeaned data (ie prefilter=1).

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2023 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 786b12bc
Branches
Tags
No related merge requests found
......@@ -81,10 +81,18 @@ function initial_estimation_checks(xparam1,gend,data)
end
end
end
if info(1) > 0
disp('Error in computing likelihood for initial parameter values')
print_info(info)
disp('Error in computing likelihood for initial parameter values')
print_info(info)
end
if any(abs(oo_.steady_state(bayestopt_.mfys))>1e-9) & (options_.prefilter==1)
disp(['You are trying to estimate a model with a non zero steady state for the observed endogenous']
disp(['variables using demeaned data!'])
error('You should change something in your mod file...')
end
disp(['Initial value of the log posterior (or likelihood): ' num2str(-fval)]);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment