How External function works in the Dynare?
 Posted: Fri Jun 23, 2017 4:17 pm
Posted: Fri Jun 23, 2017 4:17 pmWould somebody explain me about my misunderstanding? 
I have the some very easy rbc model.
I created penalty function (it's positive only if x<0, and eq=0 for x>0). It’s don’t have any influence on the model, I just put pen = penal(inv);
Why the IRF is so strange?
When I look on endo_simul, there is some problem: variable pen doesn’t equal penal(inv). It’s positive when inv positive too. Why is it?
How can I check, that the function work? I used debug and funtion work well.
Thank to everyone for help.
			I have the some very easy rbc model.
I created penalty function (it's positive only if x<0, and eq=0 for x>0). It’s don’t have any influence on the model, I just put pen = penal(inv);
Why the IRF is so strange?
When I look on endo_simul, there is some problem: variable pen doesn’t equal penal(inv). It’s positive when inv positive too. Why is it?
How can I check, that the function work? I used debug and funtion work well.
Thank to everyone for help.