fitted.esw: Calculates esw from model.

View source: R/derviedfuns.R

fitted.eswR Documentation

Calculates esw from model.

Description

Calculates effective strip half-width, W*E[p(x)], where W is actual half-width, from model. @param hmmlt output from fit.hmltm @param obs observations (row numbers of hmmlt$xy) for which to calculate esw @param nx number of x values to use to implement Simpson's rule in perp dist dimension; @param to.x If TRUE integrates only to observed x, else integrates to W @param 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.

Usage

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

Details

Calls hmltm.esw to calclate effective stript width (esw) for fitted object hmmlt.


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