bootstrap.p.with.Et: Detection probability bootstrap with availability process...

Description Usage Arguments Details Value

Description

Nonparametric bootstrap of detection data with estimation of detection probabilities. If fixed.avail=FALSE, does parametric resampling of mean times available and unavailable for every resample of detection data, else treats these mean times as fixed.

Usage

1
2
bootstrap.p.with.Et(dat, pars, hfun, models, survey.pars, hmm.pars,
  control.fit, control.opt, fixed.avail = FALSE, B = 999)

Arguments

dat

detection data frame constructed by removing all rows with no detections from a data frame of the sort passed to est.hmltm.

pars

starting parameter values, as for est.hmltm.

hfun

detection hazard function name; same as argument FUN of est.hmltm.

models

detection hazard covariate models, as for est.hmltm.

survey.pars

survey parameters, as for est.hmltm.

hmm.pars

availability hmm parameters, as for est.hmltm. Must have elements $Et and $Sigma.Et

control.fit

list controlling fit, as for est.hmltm.

control.opt

list controlling function optim, as for est.hmltm.

fixed.avail

if TRUE, hmm.pars is treated as fixed, else element $Et is parametrically resampled.

B

number of bootstrap replicates.

Details

The rows of data frame dat are resampled with replacement to create new data frames with as many detections as were in dat. If fixed.avail=TRUE, then a pair of new mean times available and unavailable ($Ets) are generated for each resampled data frame, by resampling parametrically from a logNormal distribution with mean hmm.pars$Et and variance-covariance matrix hmm.pars$Sigma.Et.

Function fit.hmltm is called to estimate detection probabilities and related things for every bootstrap resample.

Value

A list with the following elements:


DistanceDevelopment/hsltm documentation built on June 21, 2019, 2:22 p.m.