Description Usage Arguments Details See Also Examples
Methods for extracting information from fitted fgamma
objects.
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"), ...)
|
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
"fgamma"
objects is available, see fgamma
for an overview.
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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.