Learn R Programming

MuMIn (version 1.7.0)

Weights: Akaike weights

Description

Calculate or extract normalized model likelihoods (Akaike weights).

Usage

Weights(x)

Arguments

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