 by songjeo1 » Fri May 22, 2015 8:23 am
by songjeo1 » Fri May 22, 2015 8:23 am 
			
			Hi everyone,
Bt only modifying the mod file name for my own, I wrote the following M.file  in the below. 
rho_a is structural parameter that indicates the AR(1) parameter for tech. shock in my mod file.
===================================
rhos = 0.8:0.05:1.05;
first_time = 1;
for i=1:length(rhos)
    if first_time
        set_param_value('rho_a',rhos(i));
        dynare RS_A2.mod noclearall;
        first_time = 0;
    else
        set_param_value('rho_a',rhos(i));
        info = stoch_simul(irf);
        if info;
          disp(['Computation fails for rho = ' num2str(rho_a)]);
        end;
    end
end
=======================================
The error message in Korean contains  
"set_param_value (line 22)
i = strmatch(pname,M_.param_names,'exact'); "
What is wrong with my M.file?