View source: R/NormalBlockBase-S3methods.R
| BIC.NormalBlockBase | R Documentation |
Extracts the (variational) BIC of a fitted normal-block
model, computed as deviance + penalty (lower is better). The penalty
charges each group of parameters the log of the number of observations
informing it (see the penalty_terms field of NormalBlockBase), so it
differs from stats::BIC()'s default log(nobs) * df computed from
logLik().
## S3 method for class 'NormalBlockBase'
BIC(object, ...)
object |
An object of class NormalBlockBase. |
... |
not used, only here for S3 compatibility |
A scalar: the (variational) BIC.
ex_data <- generate_normal_block_var_data(n = 50, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex_data$Y, ex_data$X)
model <- normal_block(data, blocks = 3, control = NB_control(verbose = FALSE))
BIC(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.