Combine two or more model selection tables.
# 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)
A "model.selection" object
containing
models (rows) from all provided tables.
model.selection
objects to be combined.
(... ignored in merge
)
a character vector with two elements that are appended respectively to row names of the combined tables.
logical indicating if unique and valid row.names
should
be constructed from the arguments.
ignored.
Kamil Bartoń
if (FALSE) {
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