hmltm.esw1: Calculates esw from model.

View source: R/derviedfuns.R

hmltm.esw1R Documentation

Calculates esw from model.

Description

Calculates effective strip width from fitted model.

Usage

hmltm.esw1(
  pars,
  hfun,
  models,
  cov,
  survey.pars,
  hmm.pars,
  ID,
  nx = 100,
  type = "response",
  to.x = FALSE,
  W = NULL
)

Arguments

pars

parameters (e.g. $fit$par output from fit.hmltm)

hfun

detection hazard type (character)

models

list with elements $y and $x speficying covariate model (as for est.hmltm).

cov

data frame with covariates for detections.

survey.pars

survey pars list (as for est.hmltm).

hmm.pars

hmm pars list (as for est.hmltm)

ID

list with elements $stratum, $transect, $object - to uniquely identify detections.

nx

number of x values for Simpson's rule integration

type

"response" (default) or "link". If "link", interprets pars as being on link scale, else natural scale

to.x

If TRUE integrates only to observed x, else integrates to W

W

limit of perpendicular dist integration. If NULL, uses survey.pars$W

Details

Designed to be called by fitted.esw1. Identical to hmltm.esw but returns list instead of numerical scalar or vector, and allows limit of integration (W) to be specified explicitly, which overrides limit survey.pars$W. This is to allow it to be used in NDest for estimating density and abundance. Returns effective stript half-width (esw) for 1 observer for fitted object hmmlt, integrating using Simpson's rule.


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