aicw {geiger}R Documentation

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)

Arguments

x

a named vector of AIC scores

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.

Author(s)

Graham Slater

Examples

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

[Package geiger version 2.0.11 Index]