model.avg
has been tested to work with the following model classes:
lm
,glm
gam
(mgcv)lme
,gls
(nlme)lmer
(lme4)rlm
,glm.nb
polr
(MASS)multinom
(nnet)sarlm
,spautolm
(spdep)glmmML
(glmmML)coxph
(survival)
model.avg
may be used with a list of models, or an object returned by
dredge
. In the latter case, the models from the model selection table
are evaluated (with a call to get.models
) prior to averaging.
A warning is given if the subset argument is not provided, and the default
delta <= 4<="" code=""> will be used.=>
Other model types are also likely to be supported, in particular those
inheriting from one of the above classes. See Details section of
the Miscellaneous page to see how to provide support for
other types of models.
With method = "0"
(default) all predictors are averaged as if they were
present in all models in the set, and the value of parameter estimate is
taken to be 0 if it is not present in a particular model. If method =
"NA"
, the predictors are averaged only over the models in which they
appear.
rank
is found by a call to match.fun
and typically is
specified as a function or a symbol (e.g. a back-quoted name) or a character
string specifying a function to be searched for from the environment of the
call to lapply. rank
must be a function able to accept model as a
first argument and must always return a scalar.
Some generic methods such as predict.averaging
, coef
,
formula
,
residuals
and vcov
are supported.
logLik
method returns a list of logLik
objects
for the component models.