coef.fgamma: Extractor Methods for fgamma Objects

Description Usage Arguments Details See Also Examples

Description

Methods for extracting information from fitted fgamma objects.

Usage

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

## S3 method for class 'fgamma'
terms(x, model = c("mu", "sigma", "full"), ...)
## S3 method for class 'fgamma'
model.matrix(object, model = c("mu", "sigma"), ...)

Arguments

object, x

an object of class "fgamma".

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 "fgamma" objects is available, see fgamma for an overview.

See Also

fgamma

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## full gamma regression model for averge hourly earnings
data("Wages", package = "fgamma")
f1 <- fgamma(wage ~ educ + exper + tenure  + sex + marriage  |
               tenure, data = Wages)
## extract coefficients
coef(f1)
coef(f1, model = "mu")
coef(f1, model = "sigma")

## corresponding model matrices
head(model.matrix(f1, model = "mu"))
head(model.matrix(f1, model = "sigma"))

fgamma documentation built on May 2, 2019, 6:13 p.m.