Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

MuMIn (version 1.3.6)

MuMIn-package: Multi-model inference

Description

The package MuMIn contains functions for (automated) model selection and model averaging based on information criteria (AIC alike).

Arguments

encoding

utf-8

Details

User level functions include: [object Object],[object Object],[object Object],[object Object]

References

Burnham, K. P. and Anderson, D. R (2002) Model selection and multimodel inference: a practical information-theoretic approach. 2nd ed.

See Also

AIC, step

Examples

Run this code
fm1 <- lm(Fertility ~ . , data = swiss)

dd <- dredge(fm1)
top.models.1 <- get.models(dd, subset = delta < 4)
model.avg(top.models.1) # get averaged coefficients

top.models.2 <- get.models(dd, cumsum(weight) <= .95)
model.avg(top.models.2)

# Mixed models:
# modified example(lme)
data(Orthodont, package="nlme")
require(nlme)
fm2 <- lme(distance ~ age + Sex, data = Orthodont, 
    random = ~ 1 | Subject, method="ML")
dredge(fm2)

Run the code above in your browser using DataLab