Error : Dynare add-on for "Pruning in Perturbation DSGE Models"

Hello Johannes,

I am using Dynare add-on [ Dynare add-on for “Pruning in Perturbation DSGE Models” (repec.org)] to apply various pruning techniques.
pruning_abounds_1_0_4.zip (62.5 KB)

Guideline to use pruning methods
Dynare Add On Readme…pdf (63.3 KB)

mod file is attached.
pac1.mod (2.2 KB)
When use the following chunk of codes:

stoch_simul(order=3,periods = 500000, drop= 1000, irf=50);
simulations = pruning_abounds(M_, options_.order = 3,‘lan_meyer-gohde’);

However, I get the following error

Error: File: pac1.m Line: 218 Column: 50
Incorrect use of ‘=’ operator. To assign a value to a variable, use ‘=’. To compare values for equality, use ‘==’.
Error in dynare (line 235)
evalin(‘base’,fname) ;

Best Regards,
Shafi

1 Like

Try

simulations = pruning_abounds(M_, 3,'lan_meyer-gohde'); 

I had tried this before too. I get the following error

Output argument “simulations” (and maybe others) not assigned during call to “pruning_abounds”.
Error in pac1 (line 177)
simulations = pruning_abounds(M_, 3,‘lan_meyer-gohde’);
Error in dynare (line 120)
evalin(‘base’,fname) ;
177 simulations = pruning_abounds(M_, 3,‘lan_meyer-gohde’);

Are you using a compatible Dynare version?

Yes, I am using Dynare 4.3.2 and Matlab R2018b

It needs to be

simulations = pruning_abounds(M_, options_,3,'lan_meyer-gohde'); 
1 Like

Thank you so much, It worked fine now.