AICc: AICc

Description Usage Arguments Details Value Author(s) References Examples

Description

Calculates the second order Akaike's information criterion score for models of interest.

Usage

1
2
	AICc(n, k,LogLik)
	

Arguments

n

number of taxa for the given phylogenetic tree. It represents the sample size(the number of species on the tip of phylogeny).

k

number of free parameters in the model

LogLik

the minimum of the negative log-likelihood value obtained by optitimizing the likelihood function.

Details

'AICc' is a function to compute the AICc values and is valid to select among different models. AICc = 2*n*k/(n-k-1) -2 log L where L is the maximum likelihood for the model.

Value

The AICc values.

Author(s)

Dwueng-Chwuan Jhwueng

References

Burnham, K.P., and D.R. Anderson. 2004. Model selection and inference: a practical information-theoretic approach. Sec. Ed. Springer, New York.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
    #assign the size 
	n<-5
	#assign the number of parameter
	k<-3
	#assign the negative log likelihood value.
	LogLik<- -2
	#compute the AICc score
	AICc(n,k,LogLik)
	# result AICc value of 26.
	

BMhyd documentation built on May 2, 2019, 8:27 a.m.

Related to AICc in BMhyd...