fitted.esw1: Calculates esw from model.

View source: R/derviedfuns.R

fitted.esw1R Documentation

Calculates esw from model.

Description

Calculates effective strip width from fitted model.

Usage

## S3 method for class 'esw1'
fitted(
  hmmlt,
  obs = 1:dim(hmmlt$xy)[1],
  nx = 100,
  to.x = FALSE,
  all = FALSE,
  W = NULL
)

Arguments

hmmlt

output from fit.hmltm()

obs

observations (row numbers of hmmlt$xy) for which to calculate esw.

nx

number of x values to use to implement Simpson's rule in perp dist dimension.

to.x

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

all

If TRUE then returns esw for every observation, else returns only that for first obs if there are no covariates; always returns esw for every observation if there are covariates.

W

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

Details

Designed to be called by fitted.invp1. Identical to fitted.esw but returns list instead of numerical scalar or vector. This is to allow it to be used in NDest for estimating density and abundance. Calls hmltm.esw to calclate effective stript width (esw) for 1 observer for fitted object hmmlt.


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