Learn R Programming

MuMIn (version 1.15.1)

merge.model.selection: Combine model selection tables

Description

Combine two or more model selection tables.

Usage

## S3 method for class 'model.selection':
merge(x, y, suffixes = c(".x", ".y"), ...)

## S3 method for class 'model.selection': rbind(..., deparse.level = 1, make.row.names = TRUE)

Arguments

x, y, ...
model.selection objects to be combined. (...ignored in merge)
suffixes
a character vector with two elements that are appended respectively to row names of the combined tables.
make.row.names
logical indicating if unique and valid row.names should be constructed from the arguments.
deparse.level
ignored.

Value

encoding

utf-8

See Also

dredge, model.sel, merge, rbind.

Examples

Run this code
require(mgcv)

ms1 <- dredge(glm(Prop ~ dose + I(dose^2) + log(dose) + I(log(dose)^2),
    data = Beetle, family = binomial, na.action = na.fail))
	
fm2 <- gam(Prop ~ s(dose, k = 3), data = Beetle, family = binomial)

merge(ms1, model.sel(fm2))

Run the code above in your browser using DataLab