px: Numerical calculation of perpendicular detection function...

Description Usage Arguments Value Examples

View source: R/2DLTfunctions.r

Description

Calculates the perpendicular detection function, p(x), for a given hazard.

Usage

1
px(x, b, hr, ystart, nint = 100)

Arguments

x

scale or vector; perp. distance

b

two-element vector of hazard rate parameters, some of whihc may be logged

hr

hazard rate function

ystart

max forward distance at which could possibly detect animal (see details).

nint

number of intervals in numerical integration.

Value

probability of detection at x

Examples

1
2
3
4
5
gridx=seq(0,1,length=50)
p.x=px(gridx,b=c(-0.2876821, -2.3025851),
 hr=h2,ystart=4,nint=100)
plot(gridx,p.x,type="l",ylim=c(0,max(p.x)),
xlab="prep. distance, x",ylab="p(x)")

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