Learn R Programming

MuMIn (version 1.9.5)

Weights: Akaike weights

Description

Calculate or extract normalized model likelihoods (Akaike weights).

Usage

Weights(x)

Arguments

x
a numeric vector of information criterion values such as AIC, or objects returned by functions like AIC. There are also methods for extracting Akaike weights from a model.selection or averaging objects.

Value

  • a numeric vector of normalized likelihoods.

encoding

utf-8

See Also

importance

weights, which extracts fitting weights from model objects.

Examples

Run this code
data(Beetle)

fm1 <- glm(Prop ~ dose, data=Beetle, family=binomial)
fm2 <- update(fm1, . ~ . + I(dose^2))
fm3 <- update(fm1, . ~ log(dose))
fm4 <- update(fm3, . ~ . + I(log(dose)^2))

round(Weights(AICc(fm1, fm2, fm3, fm4)), 3)

Run the code above in your browser using DataLab