pi.hr1: Perpendicular animal density function calulated from hazard...

Description Usage Arguments Value See Also Examples

View source: R/2DLTfunctions.r

Description

Calculates perpendicular animal density π(x) using the prependicular distance function of the hazard rate function k(x,y)=a*r^{-b} on page 36 of Hayes and Buckland (1983) from the hazard function given on page 37, of that paper (and implemented in function hr1.to.p).

Usage

1
pi.hr1(x, logphi, w)

Arguments

x

perpendicular distance.

logphi

vector of parameters of h1 (on log scale).

w

perpendicular truncation distance

Value

Animal density at x calculated from hazard rate h1

See Also

h1 hr1.to.p

Examples

1
2
3
4
logphi=log(c(0.01,1.01))
x=seq(0,1,length=50)
plot(x,pi.hr1(x,logphi,w=1),type="l",xlab="Perpendicular distance",
ylab=expression(pi(x)))

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