aicw: determining Akaike weights

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
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

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

Example output

Loading required package: ape
       fit delta           w
model1   3     8 0.017870988
model2   7    12 0.002418575
model3  -5     0 0.975722880
model4   6    11 0.003987556

geiger documentation built on Jan. 25, 2020, 5:06 p.m.