Description Usage Arguments Details See Also Examples
Methods for extracting information from fitted enbin
objects.
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"), ...)
|
object, x |
an object of class |
model |
character indicating (sub)model for which information should be extracted. |
... |
currently not used. |
In addition to the methods above, a set of standard extractor functions for
"enbin"
objects is available, see enbin
for an overview.
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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.