Learn R Programming

EstimationTools (version 4.0.0)

uniform_key: Uniform key function

Description

[Experimental]

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

Usage

uniform_key(x, w)

Value

A numeric value corresponding to a given value of x and w.

Arguments

x

vector of perpendicular distances from the transect.

w

half width of the strip transect.

Author

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

Details

This is the uniform key function with parameter sigma. Its expression is given by

\(g(x) = \frac{1}{w},\)

for x > 0.

See Also

Other key functions: half_norm_key(), hazard_rate_key()

Examples

Run this code
library(EstimationTools)

#----------------------------------------------------------------------------
# Example: Uniform function
uniform_key(x=1, w=100)
curve(uniform_key(x, w=100), from=0, to=10, ylab='g(x)')

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

Run the code above in your browser using DataLab