powered by
These functions compute information criteria (IC) or Akaike weights based on information scores (akaike.wts).
IC
akaike.wts
Function IC is used internally and generally will not need to be called directly by the user.
IC(logL, K, n = NULL, method = c("AICc", "AIC", "BIC")) akaike.wts(aa)
log-likelihood
the number of free parameters
sample size for AICc and BIC calculations
which information criterion to compute; one of AIC, AICc, or BIC
vector of AIC or AICc values used to compute Akaike weights
the computed information criterion, or a vector of Akaike weights
These functions are used by the functions as.paleoTSfit and compareModels, and will rarely need to be used directly by the user.
as.paleoTSfit
compareModels
Hunt, G. 2006. Fitting and comparing models of phyletic evolution: random walks and beyond. Paleobiology 32:578--601.
opt.GRW, compareModels, as.paleoTSfit
opt.GRW
# NOT RUN { x <- sim.GRW(ns=40, ms=0.1, vs=0.1) m1<- opt.GRW(x) m2<- opt.URW(x) aw<- akaike.wts(c(m1$AICc, m2$AIC)) # easier to use compareModels(m1,m2) # }
Run the code above in your browser using DataLab