MARSS
. A list of newdata
, which includes the inputs (e.g. c and d in a marxss model) must be passed in if they are included in the model. Optionally data (Y) can be passed in in newdata
. This can be the original data or new data and can have missing values. To simulate data, use simulate.marssMLE
.## S3 method for class 'marssMLE':
predict(object, ...,
n.ahead=1,
t.start=NULL,
newdata=list(),
se.fit=TRUE,
nboot=1000,
param.gen="hessian",
verbose=FALSE,
prediction.intervals=TRUE)
marssMLE
.t.start
).param.gen="MLE"
) and will exit with an error if the Hessian cannot be computed (if param.gen="hessian"
).newdata
. This is the Kalman smoother xtT
output using newdata
as the input for data and any inputs. See MARSSkf
.newdata
. This is ytT
output using newdata
as the input for data and any inputs. See MARSShatyt
.newdata
list that was constructed from the inputs.marssMLE
object that was constructed with newdata
. This can be passed to MARSSkf
if the full Kalman filter and smoother output is needed.marssMLE
object that was constructed with newdata
. This can be passed to MARSSkf
if the full Kalman filter and smoother output is needed.marssMLE
object that was constructed with newdata
. This can be passed to MARSSkf
if the full Kalman filter and smoother output is needed.newdata
needs to be consistent with the model fitted. Thus if the model included inputs (in X or Y component) then these must also be included in newdata
and have the proper size and form. If newdata$data
is not passed in, then data (Y component) are assumed to be all missing and the expected values of the data (Ys) will be returned. The data is assumed to be all missing even if t.start
is less than T and thus the prediction period overlaps the data to which the model was fit. If that data should be included in the predictions, then it must be passed in in newdata
. The number of time steps in components of newdata
must be consistent with n.ahead
.
Prediction of the state (X) component is via the Kalman smoother (i.e. conditioned on all the data, if there is any) using MARSSkf
. Prediction of the observation (Y) component is via MARSShatyt
, and is also smoothed (i.e. conditioned on all the data, if there is any). The standard errors of prediction exclude the uncertainty in the estimation of the model parameters. You could use bootstrapping via MARSSboot
if you wanted to include that.marssMODEL
marssMLE
MARSSboot