Learn R Programming

dsm (version 2.2.17)

predict.dsm: Predict from a fitted density surface model

Description

Make predictions outside (or inside) the covered area.

Usage

# S3 method for 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. altitude, depth, distance to shore, etc. Covariates in the data.frame must have names *identical* to variable names used in fitting the DSM.

off.set

area of each of the cells in the prediction grid. Should be in the same units as the segments/distances given to dsm. Ignored if there is already a column in newdata called off.set.

type

what scale should the results be on. The default is "response", see predict.gam for an explanation of other options (usually not necessary).

any other arguments passed to predict.gam.

Value

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

Details

If newdata is not supplied, predictions are made for the data that built the model. Note that the order of the results will not necessarily be the same as the segdata (segment data) data.frame that was supplied (it will be sorted by the Segment.Label field).

See Also

predict.gam dsm.var.gam dsm.var.prop dsm.var.movblk