View source: R/metrics.R View source: R/regCompTest.R
| myAIC | R Documentation |
This function calculates the Akaike Information Criterion (AIC) for a given model.
myAIC(LL, nparam)
LL |
Numeric value representing the log-likelihood of the model. |
nparam |
Numeric value representing the number of parameters in the model. |
The AIC is calculated using the formula:
AIC = -2 \cdot LL + 2 \cdot nparam
Where LL is the log-likelihood of the model and nparam is the
number of parameters.
Numeric value representing the AIC.
LL <- -120.5
nparam <- 5
myAIC(LL, nparam)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.