geiger (version 2.0.11)

aicw: determining Akaike weights

Description

This function computes Akaike Weights and ranks model based on their support from a vector of AIC scores.

Usage

aicw(x)

Value

An nx3 matrix, where n is the number of models being compared. The first column contains the AIC scores, the second contains the deltaAIC score and the third the Akaike Weight. Models are ranked in descending order according to weight. Rownames are the model names taken from the input vector.

Arguments

x

a named vector of AIC scores

Author

Graham Slater

Examples

Run this code
AIC.scores <- c(3,7,-5, 6)
names(AIC.scores) <- c("model1", "model2", "model3", "model4")
aicw(AIC.scores)

Run the code above in your browser using DataLab