Description Usage Arguments Details Value Examples
This function takes a vector of AIC (Akaike Information Criterion) values and returns a vector of AIC weights using the formula from Burnham and Anderson (2002).
1 | AICweights(AIC, na.rm = TRUE)
|
AIC |
A vector of values. |
na.rm |
Whether to remove NA values. |
If na.rm = FALSE
and any values in AIC
are NA
, all returned values will be NA
.
A named vector of weights with names inherited from AIC
.
1 2 3 4 5 6 | AIC <- c(NA, 5, 10, 20, 25)
#ignore NAs
AICweights(AIC)
#should return all NAs
AICweights(AIC, na.rm = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.