Learn R Programming

MuMIn (version 1.3.6)

mod.sel: model selection table

Description

Builds a model selection table

Usage

mod.sel(object, ..., rank = AICc, rank.args = NULL)

Arguments

object
A fitted model object or a list of such objects.
...
more fitted model objects
rank
Optional, custom rank function (information criterion) to use instead of AICc, e.g. QAIC or BIC, may be omitted if object is a model list returned by get.models.
rank.args
Optional list of arguments for the rank function. If one is an expression, an x within it is substituted with a current model.

Value

  • An object of class "model.selection" with columns containing useful information about each model: the coefficients, value of the information criterion used, Delta(IC) and weight.

encoding

utf-8

See Also

dredge

Examples

Run this code
data(Cement)
Cement$X1 <- cut(Cement$X1, 3)
Cement$X2 <- cut(Cement$X2, 2)

fm1 <- glm(formula = y ~ X + X1 + X2 * X3, data = Cement)
fm2 <- update(fm1, . ~ . - X - X1)
fm3 <- update(fm1, . ~ . - X2 - X3)

# ranked with default AICc
mod.sel(fm1, fm2, fm3)

# ranked with BIC
mod.sel(fm1, fm2, fm3, rank=AIC, rank.args=alist(k=log(nobs(x))))

Run the code above in your browser using DataLab