View source: R/key_functions.R
hazard_rate_key | R Documentation |
This function provides the hazard rate key function for model fitting in distance sampling.
hazard_rate_key(x, sigma, beta)
x |
vector of perpendicular distances from the transect. |
sigma |
scale parameter. |
beta |
shape parameter. |
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.
A numeric value corresponding to a given value of x
,
sigma
and beta
.
Jaime Mosquera Gutiérrez, jmosquerag@unal.edu.co
Other key functions:
half_norm_key()
,
uniform_key()
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)') #----------------------------------------------------------------------------
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.