avgPersist: Compute average carcass persistence

Description Usage Arguments Value Author(s) See Also Examples

View source: R/avgPersist.r

Description

This computes average carcass persistence during a set of searches, given a cummulative hazard distribution

Usage

1
avgPersist(searches, dist = "exponential", shape, scale)

Arguments

searches

A vector containing julian dates of all carcass searches. Only the number of searches and difference between min and max matter. Average search interval is computed and average persistence probability is computed between 0 and average interval. Hence, placement of searches within min(searches) and max(searches) does not matter.

dist

Character string naming the survival distribution to use. Valid values are "exponential" and "weibull".

shape

Shape parameter of the survival distribution. If dist == "exponential", this parameter is ignored.

scale

Scale parameter of the survival distribution. If dist == "exponential", this parameter is the mean, which is 1/rate, where rate is the parameter of pexp in R.

Value

A single number. The average probability of a carcass surviving from 0 to the average search interval. i.e., average survival under the survival curve from 0 to diff(range(searches))/2.

Author(s)

Trent McDonald

See Also

eoa

Examples

1
2
avgPersist(c(0,15,30),"exponential",scale=8.6251)
avgPersist(c(0,15,30),"weibull",0.57792,7.1683)

tmcd82070/evoab documentation built on May 13, 2020, 11:25 p.m.