View source: R/predict.move.2.R
predict.move.2 | R Documentation |
Predicts new values from a maintenance of variance extension, type 2 (MOVE.2) model fit.
## S3 method for class 'move.2' predict(object, newdata, type = c("response", "link"), ...)
object |
an object of class "move.2" on which to base the predicted values. |
newdata |
an optional data.frame in which to look for variables with which to predict. If omitted, then the fitted values are used. |
type |
the type of prediction ("response" or "link"). See Details. |
... |
not used, required for method function. |
If type
is "response," then the predicted values are
back-transformed. Otherwise, the predicted values are computed directly from
the model equation.
A vector of predictions matching newdata
or the model data.
If lag was set to a non-zero value in the call to move.2
, then the
explanatory variable is lagged only when predictiong values from the calibration
data (newdata
is not supplied.) This facilitates prediction of selected
statistics at the response site rather than the complete record.
move.2
## Not run: # See the vignette: vignette("RecordExtension", package="smwrStats") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.