Learn R Programming

dsm (version 2.1.3)

predict.dsm: Predict from a fitted density surface model

Description

Make predictions outside (or inside) the covered area.

Usage

## S3 method for class 'dsm':
predict(object, newdata = NULL,
    off.set = NULL, type = "response", ...)

Arguments

object
a fitted dsm object as produced by dsm().
newdata
spatially referenced covariates e.g. sea temperature, depth, distance to shore, etc. Note covariates in this dataframe must have names *identical* to variable names used in fitting the GAM.
off.set
area of each of the cells in the prediction grid. Ignored if if their is already a column in newdata called off.set. The link function is applied to the offset inside this function.
type
what scale should the results be on. The default is "response" and is almost always what you want.
...
any other arguments passed to predict.gam or predict.glm.

Value

  • predicted values on the response scale (density/abundance).