Model utilities | R Documentation |
These functions extract or calculate various values from provided fitted model objects(s). They are mainly meant for internal use.
coeffs
extracts model coefficients;
getAllTerms
extracts independent variable names from a model object;
coefTable
extracts a table of coefficients, standard errors and
associated degrees of freedom when possible;
get.response
extracts response variable from fitted model object;
model.names
generates shorthand (alpha)numeric names for one or several
fitted models.
coeffs(model)
getAllTerms(x, ...)
## S3 method for class 'terms'
getAllTerms(x, intercept = FALSE, offset = TRUE, ...)
coefTable(model, ...)
## S3 method for class 'averaging'
coefTable(model, full = FALSE, adjust.se = TRUE, ...)
## S3 method for class 'lme'
coefTable(model, adjustSigma, ...)
## S3 method for class 'gee'
coefTable(model, ..., type = c("naive", "robust"))
get.response(x, data = NULL, ...)
model.names(object, ..., labels = NULL, use.letters = FALSE)
model |
a fitted model object. |
object |
a fitted model object or a list of such objects. |
x |
a fitted model object or a |
offset |
should ‘offset’ terms be included? |
intercept |
should terms names include the intercept? |
full , adjust.se |
logical, apply to |
adjustSigma |
See |
type |
for GEE models, the type of covariance estimator to calculate
returned standard errors on. Either |
labels |
optionally, a character vector with names of all the terms,
e.g. from a global model. |
... |
in |
data |
a |
use.letters |
logical, whether letters should be used instead of numeric codes. |
The functions coeffs
, getAllTerms
and coefTable
provide
interface between the model object and model.avg
(and
dredge
). Custom methods can be written to provide support for
additional classes of models.
coeffs
's value is in most cases identical to that returned by
coef
, the only difference being it returns fixed effects'
coefficients for mixed models, and the value is always a named numeric vector.
Use of tTable
is deprecated in favour of coefTable
.
Kamil Bartoń
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.