Description Usage Arguments Details Value Author(s)
dshm_fit
fits Hurdle models, performs model averaging, calculates Hurdle model predictions on a user-defined grid.
1 2 3 4 |
det.fn |
Detection function fitted by |
effects.pa |
List of characters defining the binomial gam models to be fitted. For model structure see |
effects.ab |
List of characters defining the zero-truncated Poisson gam models to be fitted. For model structure see |
knots.pa |
List of knot gam knot positions for each smooth term of the fitted binomial models. |
knots.ab |
List of knot gam knot positions for each smooth term of the fitted zero-truncated Poisson models. |
method |
GAM fitting method. Note that |
lim |
AIC weight (AICw) threshold for model averaging. Models with AICw < lim are not averaged. Default is 0.1. |
obsdata |
Dataframe object with the following structure:
|
segdata |
Dataframe object with the following strucuture:
You do not have to create segdata manually. You can use the functions in |
grid |
Grid used for model prediction. Column names for habitat covriates should correspond to those in 'segdata'. You can create a grid using the function |
SelectionTable |
If |
showSelectedModels |
If |
group |
If |
strip.width |
Strip width to calculate segment area if there is no "area" column in segdata. |
Hurdle models are two stage models. They consist in a presence-absence (pa
) submodel and an abundance-given-presence (ab
) submodel. Each submodel can be specified in many ways that we call submodel variants. Final Hurdle model predictions are obtained by multiplying pa
with ab
predictions. For more information about fitting Hurdle models you can download the fitting_Hurldle.pdf tutorial.
A list of 6 objects:
models: list of fitted pa
and ab
submodel variants.
info: list of information for the fitted submodel variants.
ID: ID of selected models.
k: number of knots for all model variants.
weight: AIC weights for all model variants.
edfs: effective degree of freedom for all model variants.
k.loc: knot locations for all model variants.
exdev: explained deviances for all model variants.
method: fitting methods for all model variants.
lim: selected AIC weight threshold for model averaging.
grid_data: prediction grids for presence-absence submodel (pa
), abundance-given-presence submodel (ab
) and Hurdle model (H
).
fitted: fitted values for presence-absence submodel (pa
) and abundance-given-presence submodel (ab.full
).
obs: original observations.
residuals: Hurdle model residuals.
Filippo Franchini filippo.franchini@outlook.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.