| aic_cat | R Documentation |
Computes AIC using the fitted log likelihood and a parameter count for categorical antedependence parameters.
aic_cat(fit)
fit |
A fitted model object of class |
The AIC is computed as:
AIC = -2 \times \ell + 2k
where \ell is the log-likelihood and k is the number of free
parameters.
A numeric scalar AIC value.
set.seed(1)
y <- simulate_cat(40, 5, order = 1, n_categories = 2)
fit <- fit_cat(y, order = 1)
aic_cat(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.