@@ -30,12 +30,14 @@ mp_more_steps = function(model, steps_to_add) {
3030# ' Typically this argument will be unused, because by default the data are
3131# ' stored in the `calibrator` unless you want to avoid making too many copies
3232# ' of the data.
33+ # ' @param tv An optional replacement for the `tv` parameter in the
34+ # ' \code{\link{mp_tmb_calibrator}} function.
3335# ' @param default An optional list of default model variables (e.g., parameters
3436# ' initial values of state variables) to override calibrated values.
3537# '
3638# ' @export
3739mp_forecaster = function (calibrator , forecast_period_time_steps
38- , outputs = NULL , data = NULL , default = list ()
40+ , outputs = NULL , data = NULL , tv = NULL , default = list ()
3941 ) {
4042 spec = mp_optimized_spec(calibrator , " original" )
4143
@@ -72,11 +74,11 @@ mp_forecaster = function(calibrator, forecast_period_time_steps
7274 args $ spec = spec
7375 if (! is.null(data )) args $ data = data
7476 if (! is.null(outputs )) args $ outputs = outputs
77+ if (! is.null(tv )) args $ tv = tv
7578 if (is.null(args $ time )) {
7679 args $ time = calibrator $ time_steps_obj $ extended_time_arg(forecast_period_time_steps )
7780 } else {
7881 args $ time = args $ time $ extend(forecast_period_time_steps )
7982 }
8083 do.call(mp_tmb_calibrator , args )
8184}
82-
0 commit comments