How does "dirname" work in estimation?

Dear all,

Very stupid question, but I have a model with several “if” modules. When I estimate it, I would like to dump the results in specific folders. This is what dirname should do in the estimation options, but I have no clue how to make it work. I tried with quotes, without quotes… and I do not find any example in the manual. Can someone provide me with one?

For example, with

estimation(optim=(‘MaxIter’,200),datafile=usmodel_data_new,
dirname = ‘estimation_nomup’,
mode_compute=6,first_obs=1, presample=4,
lik_init=2,prefilter=0,mh_replic=100000,
mh_nblocks=4,mh_jscale=0.20,mh_drop=0.2, tex);

I get:

Starting Dynare (version 4.4.3).
Starting preprocessing of the model file …
ERROR: swmodel.mod: line 476, cols 18-24: syntax error, unexpected NAME

Same with
dirname = '/estimation_nomup’
or
dirname =estimation_nomup

Thank you very much

The dirname options was only introduced in Dynare 4.5, but you are using 4.4. In 4.5 you should use
dirname =estimation_nomup

Ah okay!! Thank you very much