gtoxAICProb: Calculate the AIC probabilities

Description Usage Arguments Details Value See Also Examples

View source: R/gtoxAICProb.R

Description

gtoxAICProb Calculates the probability that the model best represents the data based on the AIC value for each model.

Usage

1

Arguments

...

Numeric vectors of AIC values

Details

The function takes vectors of AIC values. Each vector represents the model AIC values for multiple observation sets. Each vector must contain the same number and order of observation sets. The calculation assumes every possible model is accounted for, and the results should be interpreted accordingly.

Value

A vector of probability values for each model given, as a list.

See Also

gtoxFit, AIC for more information about AIC values.

Examples

1
2
3
4
5
6
7
8
## Returns the probability for each model, given models with AIC values
## ranging from 80 to 100
gtoxAICProb(80, 85, 90, 95, 100)

## Also works for vectors
m1 <- c(95, 195, 300) ## model 1 for three different observations
m2 <- c(100, 200, 295) ## model 2 for three different observations
gtoxAICProb(m1, m2)

GladiaTOX documentation built on Nov. 15, 2020, 2:07 a.m.