Skip to contents

Compute the Probability of Daily Survival (PDS), the Average Life Expectancy ALE, Recapture Rate RR, Survival Rate SR), by population (by default, unless pool = TRUE)

Usage

sit_survival(
  x,
  pool = FALSE,
  spatial_adjustment = TRUE,
  following_releases,
  following_days,
  species = NULL
)

Arguments

x

A sit object.

pool

Logical. Whether to aggregate data from released populations.

spatial_adjustment

Logical. Whether to adjust observations to account for a irregular spatial arrangement of traps.

following_releases

A sit_release object with a subset of release events or missing (default) for all point release events. Use in combination with following_days to filter surveys of the target populations within a given number of days after release. Note that counts of wild populations will always be included in the results with a value of NA in pop_col.

following_days

Integer or missing (default). Number of days after releases to return, if following_releases is not missing.

species

a character vector of species to be returned. Defaults to NULL, which ignores the species variable.

Value

A sit_survival object, which is a data.frame with additional attributes which can be plotted.

Examples

(surv_prototype <- sit_survival(sit_prototype))
#> 
#> ── Survival ────────────────────────────────────────────────────────────
#> 
#> 
#> population    N_released    PDS    ALE   RRx1e3     SR
#> -----------  -----------  -----  -----  -------  -----
#> blue               10000   0.81   4.83     1.96   0.81
#> red                10000   0.81   4.83     1.76   0.82
#> yellow             10000   0.81   4.83     1.38   0.82
#> 
plot(surv_prototype)