Learn R Programming

geiger (version 2.0.7)

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)

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.

Examples

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