hr2.to.p: Calculate harzard rate perpendicular distance function from...

Description Usage Arguments Value Examples

View source: R/2DLTfunctions.r

Description

Implements the a prependicular distance function of the hazard rate function k(r,y)=a √(r^2-y^2)/r^{(b+1)}; b>2 on page 37 of Hayes and Buckland (1983) from the hazard function given on page 38 of that paper (and implemented in function h2).

Usage

1
hr2.to.p(x, b, w)

Arguments

x

perpendicular distance.

b

vector of parameters of h2 (on log scale).

w

perpendicular truncation distance

Value

value of hazard rate detection function at x

Examples

1
2
3
x=seq(0,1,length=50)
plot(x,hr2.to.p(x,b=c(-0.2876821, -2.3025851),w=1),ylim=c(0,1),
xlab='Perp. distance, x', ylab='P(detect)',type='l')

david-borchers/LT2D documentation built on Aug. 17, 2020, 1:37 a.m.