New Estimation Interface

Suggestions for a simplification of the estimation interface in Dynare and breaking very general commands with lots of options in several commands with more targeted scope.

set_time

This command allows to specify an initial date and a frequency for the data used by dynare or the data generated by dynare (this command is noit specific to estimation). There is only one input argument. The frequency is implicit.

Syntax examples

   set_time(1950Q3)

   set_time(1960)

   set_time(1971M5)

Preprocessor generated code

Instantiate an object from the dynDates class. This object, say initial_period, is stored in options_.time. If the command set_time is absent, default initial period is 1 (with yearly frequency). For the preceeding examples, the preprocessor should write in the main matlab file:

   options_.time.initial_period('1950Q3');

   options_.time.initial_period(1960);

   options_.time.initial_period('1971M5');

the default being

   options_.time.initial_period(1);

dataset

This command initializes the dataset (an object instantiated by dynSeries). The following options are available:

estimated_params

Rely on options names rather than argument position in the command line. This new interface would replace estimated_params_bounds and estimated_params_init. The following option names would be necessary

Syntax examples

The following instructions given as examples are to be used within the estimated_params block.

     alpha.prior(shape=beta,mean=0.3,variance=0.1^2);

     alpha.prior(shape=beta,interval=(0.2,0.4,.9));

     theta.prior(shape=gamma,mode=4,variance=10,shift=+2);
     sigma.prior(shape=gamma,mode=-1,variance=5,shift=-2);

     plouf.prior(shape=uniform,domain=(.5,2));
     fuolp.prior(shape=beta,mode=1.5,stdev=.05,domain=(1,2));

     alpha.subsamples(name1=1950Q3:1957Q4, name2=1958Q1:1983Q2, name3=1983Q3:2011Q2) 

     alpha.name1.prior(shape=normal,mode=0.30,stdev=.01);
     alpha.name2.prior(shape=normal,mode=0.33,stdev=.01);
     alpha.name2.prior(shape=normal,mode=0.40,stdev=.01);