# Sensitive analysis for change in parameters value

Hello everyone,

I am trying to do some sensitive analysis for my model. More precisely, I want to see how a change in specific variable values change the shape of my IRF.
I have found the following procedure on line but it does not work for me.
Could someone tell me if it is the correct procedure or if there is an alternative way to do what I’m trying to do. Actually, the following procedure is for 3-D graphs.The first step of the code is directly in dynare and the last line of the code is for matlab in order to plot it.
Best,
Hugo

for i=1:200
set_dynare_seed(i); stoch_simul(periods=200, noprint, nograph); g_sim(:,i) = g;
pi_sim(:,i) = pi;

end

psi_params = 0:0.05:1;

for i=1:length(psi_params)
psi = psi_params(i); stoch_simul(noprint, nograph); pi_eps_a_mat(:,i) = pi_eps_a;

end

surf(pi_eps_a_mat(1:5,:)); xlabel(‘\psi’); ylabel(‘t’); zlabel(‘\pi’);


What you describe is a straightforward problem with two components:

1. Looping over parameters in Dynare. There are many posts dealing with that. Your code above is not recommended as you should loop over the Matlab-function stoch_simul. See
Loop over parameters - #2 by jpfeifer
2. Plotting the data. You can use any Matlab command you like for that.

Dear Mr Pfeifer,

Thanks for your answer, I will work on that.
Have a good day.
Hugo