Expand unit test on initval file

Also moves it to separate directory
time-shift
Johannes Pfeifer 2014-11-27 10:49:18 +01:00
parent da691bb21c
commit bb92f9bc2a
7 changed files with 31 additions and 8 deletions

View File

@ -33,7 +33,7 @@ MODFILES = \
optimal_policy/Ramsey/ramsey_ex_initval_AR2.mod \
optimal_policy/Ramsey/ramsey_ex_aux.mod \
discretionary_policy/dennis_1.mod \
ramst_initval_file.mod \
initval_file/ramst_initval_file.mod \
ramst_normcdf_and_friends.mod \
ramst_vec.mod \
example1_varexo_det.mod \
@ -305,7 +305,10 @@ EXTRA_DIST = \
fs2000_ssfile_aux.m \
printMakeCheckMatlabErrMsg.m \
printMakeCheckOctaveErrMsg.m \
ramst_initval_file_data.m \
initval_file/ramst_initval_file_data.m \
initval_file/ramst_initval_file_data_col_vec_mat.mat \
initval_file/ramst_initval_file_data_row_vec_mat.mat \
initval_file/ramst_initval_file_excel.xls \
test.m \
AIM/data_ca1.m \
AIM/fs2000_b1L1L_AIM_steadystate.m \

View File

@ -26,9 +26,22 @@ initval_file(filename = ramst_initval_file_data);
steady;
check;
simul(periods=200);
initval_file(filename = ramst_initval_file_data_row_vec_mat);
steady;
simul(periods=200);
rplot c;
rplot k;
initval_file(filename = ramst_initval_file_data_col_vec_mat);
steady;
simul(periods=200);
initval_file(filename = ramst_initval_file_excel);
steady;
simul(periods=200);

View File

@ -0,0 +1,10 @@
x = vertcat([ 1; 1.2 ], repmat(1, 200, 1));
k = repmat(12.7551, 202, 1);
c = repmat(1.53061, 202, 1);
% save ramst_initval_file_data_col_vec_mat
% xlswrite('ramst_initval_file_excel',[x k c],1,'A2')
% xlswrite('ramst_initval_file_excel',{'x' 'k' 'c'},1,'A1')
% c=c'
% k=k'
% x=x'
% save ramst_initval_file_data_row_vec_mat

Binary file not shown.

View File

@ -1,3 +0,0 @@
x = vertcat([ 1; 1.2 ], repmat(1, 200, 1));
k = repmat(12.7551, 202, 1);
c = repmat(1.53061, 202, 1);