AIC_mlm: Computation of AIC for mlm objects

View source: R/AIC_mlm.R

AIC_mlmR Documentation

Computation of AIC for mlm objects

Description

Extends the extractAIC method from the stats package to handle multi-predictand linear models (objects of class mlm).

Usage

AIC_mlm(fit, scale = 0, k = 2)

Arguments

fit

An object of class mlm.

scale

The estimate of the error variance. scale = 0 indicates that it is to be estimated by maximum likelihood.

k

Numeric, the penalty per parameter to be used; the default k = 2 is the classical AIC.

Value

A list of length 2 giving

  • df The 'equivalent degrees of freedom' for the fitted model fit.

  • AIC A vector of the (generalized) Akaike Information Criterion for the fits.


bocinsky/PaleoCAR documentation built on Feb. 23, 2023, 12:14 p.m.