Commit Graph

437 Commits (cb411e5642ecd6978c86d4ad3dfca15fa840c913)

Author SHA1 Message Date
Houtan Bastani f0ff0d911b preprocessor: allow arbitrary partitioning of variables (removes long_name keyword) 2016-02-26 16:47:17 +01:00
Michel Juillard 1a12a3de0f adding new option 'fast_kalman_filter' implementing Ed Herbst 2012 approach 2015-11-28 17:38:00 +01:00
Houtan Bastani 110823e2c7 preprocessor: remove rule that should have been removed in fd5ce1366e865c3c1f6a3178a9bfec0c2a712899 2015-10-30 18:23:39 +01:00
Houtan Bastani d587a5133f preprocessor: change prior_posterior_function into two arguments. closes #1076 2015-10-14 11:02:35 +02:00
Houtan Bastani 3907462ae9 preprocessor: prior_posterior_function: change option 'prior_posterior_sampling_draws' to 'sampling_draws' #1076 2015-10-13 17:41:31 +02:00
Houtan Bastani 863e13db55 preprocessor: interface for prior_posterior_function command. closes #1076 2015-10-13 17:16:10 +02:00
Johannes Pfeifer ce1ebac039 Allow suppressing density of smoother and forecast objects 2015-10-12 15:34:52 +02:00
Houtan Bastani 5cbbb1c41e preprocessor: add horizon option to ms_forecast 2015-09-08 17:28:08 +02:00
Houtan Bastani 6c4f7c0898 preprocessor: add relative_irf option to irf_calibration block. closes #720 2015-09-07 11:49:17 +02:00
Houtan Bastani 73a1ca92c0 preprocessor: posterior_kernel_density option to estimation. #1035 2015-08-25 11:09:08 +02:00
Houtan Bastani d8d2124866 preprocessor: allow first_obs option of estimation to accept a vector of integers. #1034 2015-08-25 10:30:21 +02:00
Michel Juillard 203ddeba3d finalize svar_global_identification_check 2015-08-24 14:53:27 +02:00
Johannes Pfeifer 8c1cd0e8ba Add option for storing contemporaneous correlation 2015-08-11 11:27:55 +02:00
Houtan Bastani 7f7e0d5f1a preprocessor: add one_sided_hp_filter to stoch_simul. #1011 2015-08-03 17:34:34 +02:00
Houtan Bastani 5b4e94149c preprocessor: add bandpass_filter option to stoch_simul. #1011 2015-08-03 17:28:55 +02:00
Houtan Bastani 8af8ee193e preprocessor: add spectral_density option to stoch_simul. #254 2015-08-03 13:02:17 +02:00
Houtan Bastani 6016463c33 preprocessor: remove constraint outlined in #849 2015-07-30 17:52:47 +02:00
MichelJuillard ecf52751d6 Merge pull request #937 from JohannesPfeifer/graph_fix
Various fixes related to graphs and eps-TeX-loaders
2015-07-20 14:36:20 +02:00
MichelJuillard 585d9f1974 Merge pull request #740 from JohannesPfeifer/relative_irf
Fix and document relative_irf
2015-07-20 14:20:00 +02:00
Stéphane Adjemian (Charybdis) 7dfba933e5 Fied bug. Moved option linear_approximation. 2015-07-08 11:11:22 +02:00
Stéphane Adjemian (Charybdis) 6e52dfb828 New option linear_approximation for perfect foresight models.
This approach only requires one evaluation of the dynamic model (and its
jacobian) instead of T (the number of perdiods). Also (because the model
is linear) the equilibrium paths are obtained by inverting the jacobian
of the stacked equations (no need for a Newton algorithm).

Only available with stack_solve_algo==0 (which is the default algorithm
for solving perfect foresight models).

If possible, the option is triggered automatically if the model is
declared linear.

TODO:
 * Write a linear version of perfect_foresight_problem routine.
 * Evaluate the approxilation error (just need to evaluate the system of
 stacked non linear equations).
2015-07-07 17:55:41 +02:00
Johannes Pfeifer 2318fb31c1 Enable tex option for stoch_simul 2015-06-08 18:00:32 +02:00
Johannes Pfeifer 342d479e8b Add preprocessor option silent_optimizer 2015-06-08 16:48:57 +02:00
Johannes Pfeifer 6c1c1c9bf6 Allow for relative_irf option in estimation command
The option was used and inherited from stoch_simul before
2015-06-08 16:42:43 +02:00
Michel Juillard f914837aff adding options LMMCP and OCCBIN to perfect_foresight_solver and
extended_path
2015-06-02 17:38:22 +02:00
Stéphane Adjemian (Hermes) dae14ac19e Fixed bug introduced in c22d31330c7d3978f882003ffb999f65be70c4a5 (Ramsey
constraints).
2015-06-01 12:27:16 +02:00
Michel Juillard 60a33fb4a1 Adding 'ramsey_constraints' block to declare contraints for Ramsey
problems. Note that LMMCP (solve_algo=10) still doesn't work in all cases.
2015-05-31 12:18:20 +02:00
Houtan Bastani 2a51f6482f preprocessor: add proprosal_distribution and student_degrees_of_freedom options to estimation. closes #925 2015-05-19 12:31:22 +02:00
Houtan Bastani 691af085cd preprocessor: add tarb_optim option to estimation. #940 2015-05-13 16:50:07 +02:00
Houtan Bastani 6f4a19bb26 preprocessor: add tarb_new_block_probability option to estimation. #940 2015-05-13 15:49:41 +02:00
Houtan Bastani e00b7b62f6 preprocessor: add tarb_mode_compute option to estimation. #940 2015-05-13 15:46:52 +02:00
Houtan Bastani 23545052a8 preprocessor: add use_tarb option to estimation. #940 2015-05-13 15:32:24 +02:00
Houtan Bastani 8f458eb961 preprocessor: add huge_number to estimation and osr. #924 2015-05-13 15:14:34 +02:00
Houtan Bastani 46ac39092d preprocessor: add dr_display_tol to stoch_simul. #924 2015-05-13 15:12:39 +02:00
Houtan Bastani d13520019d preprocessor: add dirname option to estimation. closes #910 2015-04-27 11:59:21 +02:00
Stéphane Adjemian (Charybdis) 0c7ca28bfb Added new option (diffuse_kalman_tol) and fixed tolerance paremeters in diffuse smoother routines. 2015-04-03 18:02:03 +02:00
Houtan Bastani 2a108ba38f preprocessor: add joint prior syntax, #824 2015-03-03 15:08:33 +01:00
Houtan Bastani 4ba729fdd6 preprocessor: new command write_latex_original_model. closes #657 2015-02-16 08:31:30 +01:00
Houtan Bastani c948136379 fix preprocessor implimentation of filter_algorithm option to estimation. closes #843 2015-02-09 03:20:37 +01:00
Houtan Bastani 4fc785f8d5 preprocessor: add weibull and weibull_pdf options for estimation and new estimation, #520 2014-12-12 18:02:07 +01:00
Houtan Bastani b5f7c90596 preprocessor: add prefilter, first_obs, and loglinear options to calib_smoother, #803 2014-11-26 15:05:07 +01:00
Houtan Bastani 0ab693b973 preprocessor: add optim option to osr, #779 2014-11-25 11:44:52 +01:00
Houtan Bastani c655aca1ac preprocessor: add diffuse_filter and prior_trunc options to identification, #677 2014-11-18 11:53:34 +01:00
Houtan Bastani 7dcaaa1fa0 preprocessor: add nodecomposition option to estimation and stoch_simul, #702 2014-11-17 12:15:38 +01:00
Houtan Bastani 4307af5ff5 osr: add option opt_algo. #779 2014-11-14 17:35:03 +01:00
Stéphane Adjemian (Scylla) a124d2b255 Added option distribution_proposal (estimation, non linear filters). 2014-09-08 22:36:41 +02:00
Stéphane Adjemian (Scylla) b62dd9f0db Added option proposal_approximation (estimation, non linear filters). 2014-09-08 22:36:41 +02:00
Stéphane Adjemian (Scylla) 7e9dc99b61 Bug fixes. 2014-09-08 22:36:41 +02:00
Stéphane Adjemian (Scylla) 04754432b3 Added filter_algorithm (estimation command, sets the particle filter algorithm). 2014-09-08 22:36:41 +02:00
Stéphane Adjemian (Scylla) 63450d99a6 Added option resampling_method (estimation command, non linear filters). 2014-09-08 22:36:41 +02:00
Stéphane Adjemian (Scylla) e5007a873f Added option resampling_threshold (estimation command, non linear filters). 2014-09-08 22:36:40 +02:00
Stéphane Adjemian (Scylla) cdb2eb0abf Added option resampling (estimation command, non linear filters). 2014-09-08 22:36:40 +02:00
Stéphane Adjemian (Scylla) b17f65d0a2 Added option number_of_particles (estimation command, non linear filters). 2014-09-08 22:36:40 +02:00
Stéphane Adjemian (Charybdis) 78c72dad5f Added the possibility to pass a dseries object to the data command (the user can manipulate the data in the mod file, using dseries class methods, and use them for estimation without writing the data on disk). 2014-06-17 16:03:30 +02:00
Stéphane Adjemian (Charybdis) 90e2837bcb Fix initialization of the fields in options_.dataset + Cosmetic changes. 2014-05-21 16:47:58 +02:00
Sébastien Villemot 578da1e0bc Perfect foresight solver now uses a homotopy technique by default.
This commit introduces a "no_homotopy" option to restore the old behavior.

Ref #220
2014-04-10 16:39:06 +02:00
Sébastien Villemot 1644412875 New option "overwrite" to "shocks" and "mshocks".
Tells that a new block overwrite the previous ones instead of being cumulative.
2014-04-10 11:54:49 +02:00
Sébastien Villemot d44cb3af93 Introduce two new command: perfect_foresight_{setup,solver}.
simul is now simply an alias for
perfect_foresight_setup+perfect_foresight_solver.
2014-04-09 17:57:17 +02:00
Sébastien Villemot 8c2e9b3c02 Improvements to smoother2histval (ref #594)
- fix handling of auxiliary variables related to lagged endogenous
- add preprocessor interface
- add histval_file
- add tests (for smoother2histval with outfile, and for histval_file)
2014-04-03 15:05:20 +02:00
Houtan Bastani 491e70ab7b dmm/estimation: add dirichlet prior shape front end, #642 2014-03-26 11:12:43 +01:00
Sébastien Villemot 8507409d97 Allow ranges in lags/periods specification of {irf,moment}_calibration.
Ref #267
2014-03-17 18:12:04 +01:00
Michel Juillard 46bcfea9e5 adding ramsey_model to Dynare grammar 2014-03-09 12:15:32 +01:00
Johannes Pfeifer d43a2bce09 Add option mh_conf_sig
Fixes #598
2014-03-06 10:06:55 +01:00
Houtan Bastani 516491941d ms-dsge: add number_of_lags and parameters option to front end 2014-02-24 12:37:18 +01:00
Sébastien Villemot 58d71bb44e Implement syntaxes for moment_calibration and irf_calibration.
Ref #267
2014-02-10 19:23:06 +01:00
Sébastien Villemot 9e962e7a93 Add new options consider_all_endogenous and consider_only_observed.
Closes #336
2014-02-04 14:49:06 +01:00
Stéphane Adjemian (Scylla) 1ae4bebf5e Added logdata option. Closes #600. 2014-01-31 11:27:36 +01:00
Sébastien Villemot 314f9ccb0d It's bison 2.5 that's actually required now. 2014-01-13 14:56:56 +01:00
ferhat e2d9f2476c The previous syntax used to call the conditional forecast using the extended path method was problematic. It does not allow to match the endogenous and the shock that are flipped. This is problematic as soon as the forecast periods are heterogeneous or the type of expectation (surprise or perfect foresight) are different. We get rid of the previous syntax. 2013-12-31 01:57:30 +01:00
Stéphane Adjemian (Charybdis) 4d95aa8d42 Merge branch 'master' into sim1-with-variable-dimension 2013-12-30 16:37:16 +01:00
Houtan Bastani e0f662129a preprocessor: namespace fixes to remove clang warnings 2013-12-30 14:54:00 +01:00
Sébastien Villemot 1afd46b880 Refactor bison files using new prologue syntax. 2013-12-28 21:16:47 +01:00
Sébastien Villemot 10c4b8a080 Fix compatibility issue with Bison 3.
Closes #570
2013-12-28 21:02:15 +01:00
Stéphane Adjemian (Charybdis) 2975072c1b Added new option for perfect foresight simulations (sim1 routine, available only with stack_solve_algo==0).
Try to reduce the size of the nonlinear system of equations by skipping the (last) periods for wich the residuals are
already (almost) zero. The number of periods is not constant during the Newton, the effective number of periods for
each iteration of the Newton is available in oo_.deterministic_simulation.vperiods.
2013-12-27 18:35:53 +01:00
Stéphane Adjemian (Scylla) fe24d9bcab Closes #567. 2013-12-18 16:44:31 +01:00
Houtan Bastani 0d1fe6899f allow long_name to be used without specifying a latex name, #478 2013-12-09 17:04:32 +01:00
Houtan Bastani 645b830dc9 preprocessor: allow empty estimated_params_init block 2013-11-21 15:11:57 +01:00
Stéphane Adjemian (Scylla) cef58f7646 Merge branch 'master' into remove-dynDate-class 2013-11-15 18:36:10 +01:00
Houtan Bastani 14b6cf98fb preprocessor: support long name for parameters, #478 2013-11-15 11:14:16 +01:00
Houtan Bastani 8b34189bc3 preprocessor: support long name for exogenous, #478 2013-11-15 11:14:04 +01:00
Houtan Bastani d368a501d7 preprocessor: support long name for endogenous, #478 2013-11-15 10:57:51 +01:00
Stéphane Adjemian (Penelope) 966ed438c1 Merge branch 'master' into remove-dynDate-class
Conflicts:
	preprocessor/DynareBison.yy
2013-11-14 16:41:08 +01:00
Stéphane Adjemian (Penelope) d2363c9cf6 Merge branch 'preprocessor-dates' into remove-dynDate-class
Conflicts:
	preprocessor/DynareBison.yy
	preprocessor/DynareFlex.ll
	preprocessor/macro/MacroFlex.ll
2013-11-14 15:50:20 +01:00
Sébastien Villemot eabad03581 Preprocessor interface for irf_plot_threshold
Closes #498
2013-11-13 14:34:46 +01:00
Houtan Bastani 8513c59c9e preprocessor: add use_calibration option for estimated_params_init block. closes #447, closes #512 2013-11-06 13:59:13 +01:00
Stéphane Adjemian (Scylla) aa4753f9ec Merge branch 'master' into remove-dynDate-class 2013-11-06 12:43:06 +01:00
Sébastien Villemot b34a55b36a Finish implementation of mcmc_jumping_covariance option
Closes #112, #514
2013-11-05 17:16:32 +01:00
Sébastien Villemot 49060c3abd Allow a custom function named 'prior' as a value for 'mode_compute' option
Closes #507
2013-11-04 15:42:59 +01:00
Stéphane Adjemian (Charybdis) d56393da98 Merge branch 'master' into remove-dynDate-class
Conflicts:
	matlab/reports/@report_series/getLine.m
	matlab/reports/@report_series/write.m
	matlab/reports/@report_table/report_table.m
	matlab/reports/@report_table/write.m
2013-10-28 15:04:21 +01:00
Houtan Bastani 3706338bf4 ms-sbvar: ms_simulation: add option to save mcmc draws 2013-10-23 17:03:52 +02:00
Houtan Bastani 7d3dcb74c9 preprocessor: allow anything of the form dates(*) to be accepted as a valid date by the preprocessor 2013-10-23 16:09:32 +02:00
Houtan Bastani e19da3777c preprocessor: only accept dates of the form: dates('date') in mod file 2013-10-22 14:06:57 +02:00
Houtan Bastani aee8202a20 preprocessor: only accept dates of the form: dates('date') in mod file 2013-10-14 09:58:05 +02:00
Stéphane Adjemian (Charybdis) 0aa3e823c7 Merge branch 'master' into maxit 2013-10-09 12:19:17 +02:00
Houtan Bastani 5f2bf10521 front end for maxit: ref #293, #262 2013-09-24 15:40:13 +02:00
Houtan Bastani 3019c80f56 front end for Geweke convergence diagnostics for single chains 2013-09-23 15:40:19 +02:00
Houtan Bastani 8051c547ff stoch_simul: add loglinear option #431 2013-08-14 12:02:51 -04:00
Sébastien Villemot 4295a48dc8 Remove unfinished "shocks" and "labels" options to shock_decomposition
The preprocessor implementation of "shocks" is broken, and the ref. manual
entries are empty. Nothing is implemented in MATLAB files. It's better to
remove this for now, until a working implementation is done.

Ref. #136
2013-08-13 11:37:16 +02:00
Houtan Bastani e7b300039b osr: add tolf option closes #423 2013-06-26 12:33:48 +02:00
Houtan Bastani de32eeece5 osr: add maxit option ref #423 2013-06-26 12:32:30 +02:00
Stéphane Adjemian (Charybdis) c07ce32687 Added an option for setting the number of points where the posterior kernel is evaluated when using mode_check. Reorganized the options_ global structure wrt mode_check. 2013-06-20 17:19:44 +02:00
Stéphane Adjemian (Charybdis) cc7e5c4dec Added qz_zero_threshold to check, stoch_simul and estimation commands. 2013-06-12 11:46:56 +02:00
Sébastien Villemot 98daf662aa extended_path: new order and hybrid options (ref #152)
Also add stub in the doc for the new options
2013-06-07 18:18:54 +02:00
Sébastien Villemot a595a83b16 Add new option parallel_local_files to model block
Ref #389
2013-05-31 14:47:38 +02:00
Sébastien Villemot e8353673fe Add interface and doc to use_univariate_filters_if_singularity_is_detected option
Closes #414
2013-05-27 17:07:47 +02:00
Sébastien Villemot 6d7242b6e8 Add mode_check_{neighbourhood_size,symmetric_plots} in preprocessor and manual
Closes #320
2013-05-24 12:13:32 +02:00
Sébastien Villemot 55a548282c Possibility of restricting differentiate_forward_vars to some variables
Closes #351
2013-05-17 16:53:15 +02:00
Sébastien Villemot 94e6f569b8 Add new model option 'differentiate_forward_vars' (ref. #351) 2013-04-25 18:09:31 +02:00
Sébastien Villemot 75f8467803 Implement tags [static] and [dynamic] for equations
Closes #307
2013-04-11 17:11:35 +02:00
Michel Juillard 24cac29cdf removed changes linked with transforming variables to avoid log or
power of negative numbers
2013-04-09 16:35:57 +02:00
Sébastien Villemot 91f3f578a0 Use syntax log_trend_var(log_growth_factor = …) for consistency 2013-03-26 17:10:37 +01:00
Sébastien Villemot 08c2b6e1c6 Automatic detrending engine can now handle models written in logs (ref. #309)
- new command `log_trend_var'
 - new option `log_deflator' to `var' command
2013-03-26 16:51:17 +01:00
Sébastien Villemot 00c95ea352 Preprocessor interface and documentation for endogenous_prior option
Closes #321
2013-03-18 11:12:49 +01:00
Ferhat Mihoubi c709053202 Adds conditional forecast using the extended path method 2013-01-11 18:04:46 +01:00
Sébastien Villemot c50cd383c0 Add ar option to estimation
Closes: #276
2012-11-29 15:44:06 +01:00
Sébastien Villemot 823d5a51a6 Add interface and documentation to model_diagnostics
Closes: #205
2012-11-16 12:34:49 +01:00
Sébastien Villemot b3f3619ca8 Allow infinite values in threshold_reform option of GSA
Closes: #266
2012-11-16 11:08:49 +01:00
Houtan Bastani d8cbb55ee7 all_values_required keyword for initval and endval 2012-11-06 15:45:08 +01:00
Houtan Bastani bc4a2bffe4 bug fix: none instead of pdf to graph_format 2012-10-31 16:16:45 +01:00
Houtan Bastani 4509136dba bug fix: remove previous declaration of NONE as token in flex 2012-10-31 15:59:12 +01:00
Stéphane Adjemian (Charybdis) d01d952a6f Added the possibility to write graph_format=none, in which case the graphs are displayed (provided nograph and nodisplay options are not used) but not saved. 2012-10-17 16:28:36 +02:00
Houtan Bastani 39d68a9614 ms-sbvar bug fix: store no_create_init as number instead of string 2012-09-26 18:07:49 +02:00
Sébastien Villemot 514db5f801 Preprocessor interface for multiple graph formats 2012-09-11 14:26:53 +02:00
Stéphane Adjemian (Charybdis) 25e042f67a Added the possibility to use the logarithmic reduction algorithm (mainly for testing purpose). 2012-07-11 18:26:22 +02:00
Sébastien Villemot 156b86665b Allow back "dr" in variable names 2012-07-02 10:11:32 +02:00
Ferhat Mihoubi d80d7aa1e7 Adds the cycle reduction algorithm to solve the polynomial equation for retrieving the coefficients
associated to the endogenous variables in the decision rule.
2012-07-01 15:19:10 +02:00
Sébastien Villemot 683fdae2ad Fix option simul_replic 2012-06-26 17:01:13 +02:00
Michel Juillard f60aedd095 fixing bug in discretionary_policy and implementing option solve_maxit 2012-06-19 14:08:45 +02:00
Sébastien Villemot 7442179a65 Allow nograph, nodisplay and graph_format in identification 2012-06-15 10:30:53 +02:00
Sébastien Villemot 16239fd665 New option simul_replic in preprocessor and documentation 2012-06-11 11:53:55 +02:00
Sébastien Villemot 6fb2562f13 Preprocessor iface to extended_path 2012-06-08 17:36:32 +02:00
Sébastien Villemot dc8907d472 Preprocessor iface and doc for nodisplay and graph_format
Closes: #216
2012-06-07 18:29:30 +02:00
Sébastien Villemot 35bf1d5ec2 New option analytic_derivation for estimation 2012-06-06 11:34:32 +02:00
Sébastien Villemot c19f62b2e3 Bison/Flex files: do not load C++ mode under Emacs
It is better to use bison-mode and flex-mode (see the wiki)
2012-06-04 11:59:35 +02:00
Sébastien Villemot 381c6aeee8 Add new command "calib_smoother"
Closes: #233
2012-05-30 16:28:29 +02:00
Michel Juillard 73b4052f2b first implementation of transform_logpow. It creates too many auxilary
variables and probably violates Jensen inequality in some cases.
2012-05-23 15:09:33 +02:00
Michel Juillard 2fbd5d33c6 fixed issues relative to homotopy (type I) when the user wants to
continue after homotopy fails. Option stop_on_error is removed. Option
homotopy_force_continue is added.
2012-05-17 17:27:07 +02:00
Michel Juillard 7221aa486f added check_options are the same as steady_options. Added option
nocheck to 'check' in test fs2000/fs2000a as there is a unit root and
the user provided _steadystate.m doesn't solve the static equations
2012-04-24 10:32:59 +02:00
Michel Juillard 30e0b81643 fixed problems with trying to make homotopy robust to problems in one run. 2012-04-23 16:57:46 +02:00
Michel Juillard 3172022bbf computing shock_decomposition for calibrated models 2012-04-21 21:37:52 +02:00
Michel Juillard 500499f5d8 changed option name discretion_tol -> discretionary_tol, added the option
to the preprocessor, added to documentation
2012-04-21 10:40:24 +02:00
Ferhat 8001e19b9e - Adds new algorithms to solve Lyapunov equations: Doubling algorithm and Square root solver. Their respective names are "doubling" and "square_root_solver".
- Adds the tolerance criteria for the iterative solvers (sylvester_fixed_point_tol, lyapunov_fixed_point_tol and lyapunov_doubling_tol)
- Updates the reference manual
2012-04-20 19:23:00 +02:00
Michel Juillard 60fb8aeaae added steady option stop_on_error. stop_on_error = 0 permits to
continue (for example, when chaining homotopy steps), even if the
steady state computation was not successful.
2012-04-16 22:40:50 +02:00
Houtan Bastani 36a56199c4 estimation: introduce options = options syntax 2012-03-30 15:37:15 +02:00
Houtan Bastani c9aa2d7b23 estimation: introduce prior = prior syntax 2012-03-30 15:37:15 +02:00
Houtan Bastani d459b0ea7b estimation: rewrite subsamples statement as an actual statement 2012-03-28 18:51:52 +02:00
Houtan Bastani ad8096edb8 estimation: add subsamples for std / corr, prior / options statements & simplify code 2012-03-27 13:03:09 +02:00
Houtan Bastani 5f707cc795 estimation: add truncate and median options to prior statement 2012-03-15 14:33:02 +01:00
Houtan Bastani ea0b176395 MS-SBVAR: rewrite ms_variance_decomposition 2012-03-08 17:54:35 +01:00
Houtan Bastani 894ff9c1e7 MS-SBVAR: rewrite ms_forecast 2012-03-08 17:54:05 +01:00