BIC | R Documentation |
This function computes the Bayesian Information Criterion (BIC) of a Gaussian mixture model or graphical model:
BIC = logLik - \frac{\log(n_{obs})}{2} n_{par}
where logLik is the log-likelihood, n_{obs} the number of observations in the data and n_{par} the number of free parameters.
## S3 method for class 'gmm' BIC(object, data, y = NULL, regul = 0.01, ...) ## S3 method for class 'gmbn' BIC(object, data, col_seq = NULL, ...) ## S3 method for class 'gmdbn' BIC(object, data, col_seq = NULL, ...)
object |
An object of class |
data |
A data frame containing the data used to compute the BIC. Its
columns must explicitly be named after the variables (or nodes) of
|
y |
A character vector containing the dependent variables if a
conditional BIC is computed. If |
regul |
A positive numeric value corresponding to the regularization
constant if a penalty term is added for Bayesian regularization. If
|
... |
Unused arguments from the generic function. |
col_seq |
A character vector containing the column names of |
If object
is a gmm
object, a numeric value
corresponding to the BIC.
If object
is a gmbn
or gmdbn
object, a list with
elements:
global |
A numeric value corresponding to the global BIC. |
local |
For a |
AIC
, logLik
data(gmm_body, data_body) bic_1 <- BIC(gmm_body, data_body) bic_2 <- BIC(gmm_body, data_body, y = "WAIST") data(gmbn_body, data_body) bic_3 <- BIC(gmbn_body, data_body) data(gmdbn_air, data_air) bic_4 <- BIC(gmdbn_air, data_air, col_seq = "DATE")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.