Learn R Programming

MuMIn (version 1.42.1)

merge.model.selection: Combine model selection tables

Description

Combine two or more model selection tables.

Usage

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

# S3 method for 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

A "model.selection" object containing models from all provided tables.

See Also

dredge, model.sel, merge, rbind.

Examples

Run this code
# NOT RUN {
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