coef.enbin: Extractor Methods for enbin Objects

Description Usage Arguments Details See Also Examples

Description

Methods for extracting information from fitted enbin objects.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'enbin'
coef(object, model = c("full", "location", "scale"), ...)
## S3 method for class 'enbin'
vcov(object, model = c("full", "location", "scale"), ...)

## S3 method for class 'enbin'
terms(x, model = c("location", "scale", "full"), ...)
## S3 method for class 'enbin'
model.matrix(object, model = c("location", "scale"), ...)

Arguments

object, x

an object of class "enbin".

model

character indicating (sub)model for which information should be extracted.

...

currently not used.

Details

In addition to the methods above, a set of standard extractor functions for "enbin" objects is available, see enbin for an overview.

See Also

enbin

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## extended negative binomial model
data("RecreationDemand", package = "AER")
m <- enbin(trips ~ . - income | . - income, data = RecreationDemand)

## extract coefficients
coef(m)
coef(m, model = "location")
coef(m, model = "scale")

## corresponding model matrices
head(model.matrix(m, model = "location"))
head(model.matrix(m, model = "scale"))

enbin documentation built on May 2, 2019, 5:57 p.m.