AIC.sbm: Get AIC of size biased model

View source: R/AIC.sbm.r

AIC.sbmR Documentation

Get AIC of size biased model

Description

Extracts the Akaike Information Criterion from a fitted parametric size biased distribution model.

Usage

## S3 method for class 'sbm'
AIC(object, ..., k = 2)

Arguments

object

A size biased distribution model of class sbm.

...

Optional additional sbm objects.

k

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

Value

A dataframe of AIC values, NA if the model is non-parametric (i.e. fitted with pdf = "none").

Examples

  data(BCI_speed_data)
  lmod_null <- sbm(speed~1, BCI_speed_data, pdf="lnorm")
  lmod_mass <- sbm(speed~mass, BCI_speed_data, pdf="lnorm")
  AIC(lmod_null, lmod_mass)

sbd documentation built on June 22, 2024, 9:50 a.m.

Related to AIC.sbm in sbd...