p.pi.x: Product of p(x) and pi(x)

Description Usage Arguments Details Value Examples

View source: R/2DLTfunctions.r

Description

Returns product of perp dist det prob px() and animal dbn pi.x

Usage

1
p.pi.x(x, b, hr, ystart, pi.x, logphi, w)

Arguments

x

scale or vector; perp. distance observations

hr

hazard rate function

ystart

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

pi.x

perpendicular distance density distribution

w

perpendicular truncation distance.

y

scalar or vector; forward distance observations

pars

c(b,logphi); hazard rate and density log-parameters in a vector (see details).

length.b

length of the hazard rate parameter vector

Details

Must to ensure the hazard function has decayed to (very close to) zero by ystart. The parameter vector, pars, must be passed in with two parameters for the hazard rate first, then two parameters for perpendicular density gradient π(x) i.e. c(b,logphi).

Value

negative log likelihood for forward distance, y and perpendicular distance x.

Examples

1
p.pi.x(x,b,hr,ystart,pi.x,logphi,w) 

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