Learn R Programming

MuMIn (version 1.7.0)

model.sel: model selection table

Description

Build a model selection table.

Usage

model.sel(object, ...)
mod.sel(object, ...)

## S3 method for class 'model.selection': model.sel(object, rank = NULL, rank.args = NULL, ...) ## S3 method for class 'default': model.sel(object, ..., rank = NULL, rank.args = NULL)

Arguments

Value

  • An object of class "model.selection" with columns containing useful information about each model: the coefficients, df, log-likelihood, the value of the information criterion used, Delta(IC) and Akaike weight. If any arguments differ between the modelling function calls, the result will include additional columns showing them (except for formulas and some other arguments).

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 ~ X1 + X2 * X3, data = Cement)
fm2 <- update(fm1, . ~ . - X1 - X2)
fm3 <- update(fm1, . ~ . - X2 - X3)

## ranked with AICc by default
(msAICc <- model.sel(fm1, fm2, fm3))

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

Run the code above in your browser using DataLab