Learn R Programming

MuMIn (version 1.13.4)

merge.model.selection: Combine model selection tables

Description

Combine two model selection tables.

Usage

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

Arguments

x, y
model.selection objects to be combined.
suffixes
a character vector with two elements that are appended respectively to row names of the combined tables.
...
ignored.

Value

  • A model.selection object containing models from both model selection tables.

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