fitted.invp1: Calculates E[1/p(x)] from model.

View source: R/derviedfuns.R

fitted.invp1R Documentation

Calculates E[1/p(x)] from model.

Description

Calculates mean over perpendicular distance (x) of inverse of fitted values, 1/p(x) for given observations, from model.

Usage

## S3 method for class 'invp1'
fitted(hmmlt, obs = 1:dim(hmmlt$xy)[1], nx = 100, 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 (perpendicular distance values) to use in calculation.

W

actual half-width over which to integrate (overrides W in hmmlt).

Details

Identical to fitted.invp but returns data frame instead of numerical scalar or vector. This is to allow it to be used in NDest for estimating density and abundance. (Also has extra parameter: W)


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