oneBsIter | R Documentation |
An internal (un-exported) function to perform density and abundance calculations on one iteration of the bootstrap.
oneBsIter(
indexDf,
key,
data,
formula,
likelihood,
w.lo,
w.hi,
expansions,
series,
x.scl,
g.x.scl,
outputUnits,
warn,
area,
propUnitSurveyed,
pb,
plot.bs,
plotCovValues
)
indexDf |
A data frame containing row indices to use
for subsetting the rows of |
key |
A data frame containing the current id of the
BS iteration. This is included for compatability with
|
data |
An Rdistance nested data frame containing
the data to bootstrap resample. Rows of this data frame,
equating to transects, are sampled using the indicies in
|
formula |
A standard formula object. For example, |
likelihood |
String specifying the likelihood to fit. Built-in likelihoods at present are "halfnorm", "hazrate", and "negexp". |
w.lo |
Lower or left-truncation limit of the distances in distance data.
This is the minimum possible off-transect distance. Default is 0. If
|
w.hi |
Upper or right-truncation limit of the distances
in |
expansions |
A scalar specifying the number of terms
in |
series |
If |
x.scl |
The x coordinate (a distance) at which the
detection function will be scaled. |
g.x.scl |
Height of the distance function at coordinate |
outputUnits |
A string specifying the symbolic measurement
units for results. Valid units are listed in |
warn |
A logical scalar specifying whether to issue
an R warning if the estimation did not converge or if one
or more parameter estimates are at their boundaries.
For estimation, |
area |
A scalar containing the total area of inference. Usually, this is
study area size. If |
propUnitSurveyed |
A scalar or vector of real numbers between 0 and 1.
The proportion of the default sampling unit that
was surveyed. If both sides of line transects were observed,
|
pb |
A progress bar created with |
plot.bs |
Logical. Whether to plot bootstrap estimate of detection function.
A plot must already exist because this uses |
plotCovValues |
Data frame containing values of covariates to plot,
if |
A data frame containing density and abundance and other relevant statistics for one iteration of the bootstrap.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.