overDphi: overDphi

View source: R/overDphi.r

overDphiR Documentation

overDphi

Description

For a set of covariates for which estimates have been obtained on non-continguous dates, expand recorded data values to fill in all dates, so as to create a step-like function.

Usage

overDphi(model, family = "binomial", type)

Arguments

model

A glm object resulting from a call to function glm. Typically either a catch Poisson model or efficiency binomial model.

family

The family of exponential distributions. Currently allows either of family="binomial" or family="poisson".

type

The type of residual to calculate. Currently allows only "pearson".

Details

The overDphi function excludes Pearson residuals larger in magnitude of 8 in the case of binomial fits. In the case of Poisson fits, only the residuals falling within the 20

Estimates of the overdispersion less than one are set to one.

Value

An estimate of the overdispersion φ statistic from the fitting of either a family="binomial" or family="poisson" generlized linear model.

Author(s)

WEST Inc.

Examples

## Not run: 
disp <- overDphi(model=fit,
                 family="binomial",
                 type="pearson")

## End(Not run)

tmcd82070/CAMP_RST documentation built on April 6, 2022, 12:07 a.m.