hazard_rate_key: Hazard rate key function

View source: R/key_functions.R

hazard_rate_keyR Documentation

Hazard rate key function

Description

[Experimental]

This function provides the hazard rate key function for model fitting in distance sampling.

Usage

hazard_rate_key(x, sigma, beta)

Arguments

x

vector of perpendicular distances from the transect.

sigma

scale parameter.

beta

shape parameter.

Details

This is the hazard rate key function with parameters sigma and beta. Its expression is given by

g(x) = 1 - \exp((\frac{-x}{σ})^{-β},

for x > 0.

Value

A numeric value corresponding to a given value of x, sigma and beta.

Author(s)

Jaime Mosquera Gutiérrez, jmosquerag@unal.edu.co

See Also

Other key functions: half_norm_key(), uniform_key()

Examples

library(EstimationTools)

#----------------------------------------------------------------------------
# Example: Hazard rate function
hazard_rate_key(x=1, sigma=2, beta=3)
curve(hazard_rate_key(x, sigma=2, beta=3), from=0, to=10, ylab='g(x)')

#----------------------------------------------------------------------------

EstimationTools documentation built on Dec. 10, 2022, 9:07 a.m.