Learn R Programming

BMhyd (version 1.2-8)

AkaikeWeight: Akaike weight

Description

Calculate Akaike weight for the models

Usage

AkaikeWeight(Delta.AICc.Array)

Arguments

Delta.AICc.Array
Delta.AICc.Array is defined as the difference between the AICc value and the minimum AICc value among candidate models.

Value

Akaike weights.

Details

For $n$ models of interest, the Akaikei weight for the $i$ th model is defined as $w = exp(-0.5* \Delta AICc_i)/ sum_i dAICc_i$ where $\Delta AICc_i$ is the difference of the AICc value between the the $i$ th model and the best model. The weights can be used in model averaging in advanced.

References

Burham, K.P., Anderson, D.R. (2002) Model selection and multimodel inference: a practical information-theoretic approach. Second edition. Springer. New York.

Examples

Run this code
	#simulate 4 AICc values for 4 models.
	AICc_Array<-rnorm(4, mean=10,sd=1)
	#calculate the delta AICc
	Delta.AICc.Array<-AICc_Array-min(AICc_Array)
	#calculate the Akaike weight
	AkaikeWeight(Delta.AICc.Array)
	

Run the code above in your browser using DataLab