sfaf
August 8, 2021, 6:22am
#1
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');
sfaf
August 9, 2021, 11:49am
#3
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?
sfaf
August 9, 2021, 1:14pm
#5
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
sfaf
August 9, 2021, 1:41pm
#7
Thank you so much, It worked fine now.