AICtable | R Documentation |
Takes the output from a call to AIC or AICc returns a data frame with model likelihoods and model weights.
AICtable(x, digits=3, sort)
x |
A data frame with the second column being AIC-type values, as returned by |
digits |
integer indicating the number of decimal places to retain. |
sort |
logical indicating whether the table should be sorted by AIC; if missing, the rows are sorted if the table has row names. |
Returns the original data frame with the following extra columns
Delta |
The difference between each value in x and min(x) |
ModelLik |
The model likelihood |
ModelWt |
The model weight |
If sort = TRUE, the rows will be sorted by increasing values of AIC/AICc.
Mike Meredith
Burnham and Anderson (2002) Model selection and multimodel inference: a practical information-theoretic approach, 2 edn. Springer-Verlag.
data(KanhaTigers) mods <- NULL mods$M0 <- closedCapM0(KanhaTigers) mods$Mh2 <- closedCapMh2(KanhaTigers) mods$MhJK <- closedCapMhJK(KanhaTigers) mods$Mt <- closedCapMt(KanhaTigers) AICc <- sapply(mods, AICc) AICtable(AICc) # MhJK does not use likelihood maximisation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.