Learn R Programming

MuMIn (version 1.15.6)

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.

See Also

importance, weighted.mean

weights, which extracts fitting weights from model objects.

Examples

Run this code
# NOT RUN {
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