p.xy: Calculates probability of first observing animal at (x,y).

View source: R/fitting.R

p.xyR Documentation

Calculates probability of first observing animal at (x,y).

Description

Just calls p.xy1 >= once, cycling through 3rd index of Pi and 2nd indices of pm and delta.

Usage

p.xy(
  x,
  y,
  hfun,
  b,
  pm,
  Pi,
  delta,
  ymax,
  dy,
  theta.f,
  theta.b,
  ally = FALSE,
  cdf = FALSE
)

Arguments

x

perpendicular distance.

y

forward distance.

hfun

detection hazard function name.

b

detection hazard function parameters.

pm

state-dependent Bernoulli parameters.

Pi

Markov model transition probability matrix.

delta

Markov model stationary distribution.

ymax

forward distance at or beyond which things are undetectable.

dy

distance step in forward distance direction corresponding to the time step size of the Markov model governed by Pi.

theta.f

REDUNDANT must = 0.

theta.b

REDUNDANT must = 90.

ally

If TRUE calculates probability of detection at all (i.e., at some y. (Argument cdf is redundant in this case).

cdf

If TRUE returns 1 -(the cdf at y), which is equal to the probability of detection BY y. This differes from specifying ally=TRUE in that ally=TRUE calculates the cdf from ymax to y=0, whereas cdf=TRUE calculates the cdf from ymax to y.

See Also

p.xy1


david-borchers/hmltm documentation built on Oct. 29, 2023, 9:07 p.m.