AIC.sbm {sbd} | R 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 |
... |
Optional additional |
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)
[Package sbd version 0.1.0 Index]