predict.dsm: Predict from a fitted density surface model

Description Usage Arguments Details Value Author(s) See Also

View source: R/predict.dsm.R


Make predictions of density or abundance outside (or inside) the covered area.


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



a fitted dsm object as produced by dsm().


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.


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


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.


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 to dsm.

The area off.set is used if that argument is supplied, otherwise it will look for the areas in the column named off.set in the newdata. Either way the link function (usually log) will be applied to the offsets, so there is no need to log them before passing them to this function.


predicted values on the response scale by default (unless type is specified, in which case see predict.gam).


David L. Miller

See Also

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

dsm documentation built on March 27, 2021, 9:07 a.m.