| ct_traprate_estimate | R Documentation |
Computes the estimated trap rate and uncertainty using bootstrapping, with optional support for stratified estimation based on area-weighted averaging.
ct_traprate_estimate(data, strata = NULL, n_bootstrap = 1000)
data |
A data frame as returned by |
strata |
Optional. A data frame defining strata, with columns |
n_bootstrap |
Number of bootstrap replicates to estimate uncertainty. Default is 1000. |
A data frame with the following columns:
estimate: Trap rate estimate (e.g., detections per day)
se: Standard error of the estimate
cv: Coefficient of variation
lower_ci: Lower bound of the 95\
upper_ci: Upper bound of the 95\
n: Number of deployments or observation used
unit: Effort unit
ct_get_effort(), ct_traprate_data()
data("ctdp")
deployments <- ctdp$data$deployments
observations <- ctdp$data$observations %>%
dplyr::filter(scientificName == "Vulpes vulpes")
trap_rate <- ct_traprate_data(observation_data = observations,
deployment_data = deployments,
use_deployment = FALSE,
deployment_column = deploymentID,
datetime_column = timestamp,
start = start, end = 'end'
)
ct_traprate_estimate(data = trap_rate, n_bootstrap = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.