Learn R Programming

smnet (version 2.1.2)

predict.smnet: Make Predictions Using a Fitted Stream Network Model.

Description

Get predictions and standard errors for a new set of spatial locations and associated covariate values from a model fitted by smnet().

Usage

# S3 method for smnet
predict(object, newdata = NULL, ...)

Arguments

object

Object of class smnet, usually the result of a call to smnet()

newdata

data.frame containing new covariate values at which to make predictions.

...

other arguments passed to predict.smnet()

Value

List object with components

  • predictions: vector of predictions corresponding to prediction points in the original SpatialStreamNetwork input object

  • predictions.se: vector of prediction standard errors