deltaAIC: Calculate deltaAIC

Description Usage Arguments Details Value Examples

View source: R/OUwieAvg.R

Description

Calculate deltaAIC (Akaike Information Criterion), the absolute difference between the lowest AIC value and the other AIC values.

Usage

1
deltaAIC(AIC, na.rm = TRUE)

Arguments

AIC

A vector of values.

na.rm

Whether to remove NA values.

Details

If na.rm = FALSE and any values in AIC are NA, all returned values will be NA.

Value

A vector of weights.

Examples

1
2
3
4
5
AIC <- c(NA, 5, 10, 20, 25)
deltaAIC(AIC)

#should return all NAs
deltaAIC(AIC, na.rm = FALSE)

willgearty/pcmtools documentation built on Nov. 5, 2019, 12:20 p.m.