predict.dsm | R Documentation |
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", ...)
object |
a fitted |
newdata |
spatially referenced covariates e.g. altitude, depth,
distance to shore, etc. Covariates in the |
off.set |
area of each of the cells in the prediction grid. Should be
in the same units as the segments/distances given to |
type |
what scale should the results be on. The default is
|
... |
any other arguments passed to |
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
predict.gam
, dsm_var_gam
,
dsm_var_prop
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.