hr.to.p: Calculate HR perp dist function from hazard

Description Usage Arguments Value Examples

View source: R/2DLTfunctions.r

Description

Implements the g(y) on page 36 or that on page 37 of Hayes and Buckland (1983) from the hazard function given on page 37 or 38, respectively, of that paper (and implemented in function h2).

Usage

1
hr.to.p(x, b, hr)

Arguments

x

perpendicular distance.

b

vector of parameters of h2 (on log scale).

hr

hazard rate function name (must be character): only "h1" and "h2" valid

Value

value of hazard rate detection function at x

Examples

1
2
3
b=log(c(0.75,0.1))
x=seq(0,1,length=50)
plot(x,hr.to.p(x,b,hr='h2'),type="l",ylim=c(0,1),xlab="Perpendicular distance",ylab="P(detect)")

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