Learn R Programming

MuMIn (version 1.9.5)

get.models: Get models

Description

Generate a list of fitted model objects from a model.selection table. pget.models can use paralell computation in a cluster to do that.

Usage

get.models(object, subset, ...)
pget.models(object, cluster = NA, subset, ...)

Arguments

object
object returned by dredge.
subset
subset of models, an expression evaluated within the model selection table, see the subset method. If it is a character vector, it is interpreted as names of rows to be selected. By defa
...
additional arguments to update the models. For example, in lme one may want to use method = "REML" while using "ML" for model selection.
cluster
a cluster object. See pdredge for details.

Value

  • list of fitted model objects.

encoding

utf-8

See Also

dredge, model.avg

Examples

Run this code
# Mixed models:

require(nlme)
fm2 <- lme(distance ~ age + Sex, data = Orthodont,
    random = ~ 1 | Subject, method = "ML")
ms2 <- dredge(fm2)

# Get top-most models, but fitted by REML:
(confset.d4 <- get.models(ms2, subset = delta < 4, method = "REML"))

Run the code above in your browser using DataLab