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