bootstrap.p.with.Et | R Documentation |
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.
bootstrap.p.with.Et(
dat,
pars,
hfun,
models,
survey.pars,
hmm.pars,
control.fit,
control.opt,
fixed.avail = FALSE,
B = 999
)
dat |
detection data frame constructed by removing all rows with no detections from a
data frame of the sort passed to |
pars |
starting parameter values, as for |
hfun |
detection hazard function name; same as argument |
models |
detection hazard covariate models, as for |
survey.pars |
survey parameters, as for |
hmm.pars |
availability hmm parameters, as for |
control.fit |
list controlling fit, as for |
control.opt |
list controlling function |
fixed.avail |
if TRUE, hmm.pars is treated as fixed, else element |
B |
number of bootstrap replicates. |
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 ($Et
s) 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.
A list with the following elements:
callist: input reflection: everything passed to the function, bundled into a list
bs: a list containing (a) a Bxn matrix $phats
in which each row is the estimated
detection probabilities for each of the n bootstrapped detections, (b) a Bxn matrix $pars
in which each row is the estimated detection hazard parameters, (c) the following vectors
of length B with estimates from each bootstrap: $p0
(mean estimated p(0) over all
detections), $phat
(mean estimated detection probability over all detections), and (d)
a Bx2 matrix $b.Et
in which each row is the mean times unavailable and available.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.