summaryIC: Summary of AIC/BIC

Description Usage Arguments Value Author(s) Examples

Description

Summarizes IC differences and weights to identify plausible models (models with highest empirical support).

Usage

1
summaryIC(x, delta = 2)

Arguments

x

A data frame with one row per model, and one column giving an information-theoretic index (AIC or BIC), such as returned by AIC or BIC with several models.

delta

The difference threshold to identify models with similar support.

Value

The input data frame with additional columns delta giving IC differences with the best model, best identifying the best model(s) (* for the absolute best model, + for models within the threshold), and omega giving AIC weights.

Author(s)

Mathieu Basille basille@ufl.edu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Prepare two models:
lm1 <- lm(Fertility ~ . , data = swiss)
lm2 <- update(lm1, . ~ . -Examination)

## Check AIC:
AIC(lm1, lm2)

## Summary of AIC and BIC:
summaryIC(AIC(lm1, lm2))
summaryIC(BIC(lm1, lm2))

basille/basr documentation built on May 11, 2019, 8:32 p.m.