From 3d6af995bc6916b0fa4e6e0a4ebec2b5ed45d239 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx,de> Date: Thu, 30 Oct 2014 14:23:13 +0100 Subject: [PATCH] Update unit test by adding also auxiliary variables on exogenous variables --- tests/optimal_policy/Ramsey/ramsey_ex_aux.mod | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/optimal_policy/Ramsey/ramsey_ex_aux.mod b/tests/optimal_policy/Ramsey/ramsey_ex_aux.mod index 5dee4ba6c..bcf066974 100644 --- a/tests/optimal_policy/Ramsey/ramsey_ex_aux.mod +++ b/tests/optimal_policy/Ramsey/ramsey_ex_aux.mod @@ -5,7 +5,7 @@ * MONFISPOL FP7 project SSH-225149, Deliverable 1.1.2 */ -var pai, c, n, r, a, junk_backward,junk_forward,junk_expectation; +var pai, c, n, r, a, junk_endo_backward,junk_endo_forward,junk_expectation,junk_exo_backward,junk_exo_forward; varexo u; parameters beta, rho, epsilon, omega, phi, gamma; @@ -20,9 +20,11 @@ model; a = rho*a(-1)+u; 1/c = beta*r/(c(+1)*pai(+1)); pai*(pai-1)/c = beta*pai(+1)*(pai(+1)-1)/c(+1)+epsilon*phi*n^(gamma+1)/omega -exp(a)*n*(epsilon-1)/(omega*c); -junk_backward=c(+2); -junk_forward=c(-2); +junk_endo_backward=c(+2); +junk_endo_forward=c(-2); junk_expectation=EXPECTATION(-1)(c(+1)); +junk_exo_backward=u(-2); +junk_exo_forward=u(+2); exp(a)*n = c+(omega/2)*(pai-1)^2; end; @@ -35,9 +37,11 @@ a = 0; pai = beta*r; c = find_c(0.96,pai,beta,epsilon,phi,gamma,omega); n = c+(omega/2)*(pai-1)^2; -junk_backward=c; -junk_forward=c; +junk_endo_backward=c; +junk_endo_forward=c; junk_expectation=c; +junk_exo_backward=0; +junk_exo_forward=0; end; shocks; -- GitLab