Extract Log-Likelihood of a Collection of Normal-Block Models
Source:R/NormalBlockVarCollection-S3methods.R
logLik.NormalBlockVarCollection.RdReturns the log-likelihood of every model in a collection of normal-block models (see [NormalBlockVarCollectionClusters], [NormalBlockVarCollectionSparsity], [NormalBlockVarCollectionClustersSparsity]).
Usage
# S3 method for class 'NormalBlockVarCollection'
logLik(object, ...)Examples
ex_data <- generate_normal_block_var_data(n = 50, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex_data$Y, ex_data$X)
models <- normal_block(data, blocks = 2:5, control = NB_control(verbose = FALSE))
logLik(models)
#> [1] -767.4408 -629.8253 -629.8262 -629.8254