predict.move.2: Predict Maintenance of Variance Extension, Type 2

View source: R/predict.move.2.R

predict.move.2R Documentation

Predict Maintenance of Variance Extension, Type 2

Description

Predicts new values from a maintenance of variance extension, type 2 (MOVE.2) model fit.

Usage

## S3 method for class 'move.2'
predict(object, newdata, type = c("response", "link"), ...)

Arguments

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.

Details

If type is "response," then the predicted values are back-transformed. Otherwise, the predicted values are computed directly from the model equation.

Value

A vector of predictions matching newdata or the model data.

Note

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.

See Also

move.2

Examples

## Not run: 
# See the vignette:
vignette("RecordExtension", package="smwrStats")

## End(Not run)

USGS-R/smwrStats documentation built on Oct. 11, 2022, 6:15 a.m.