Extract Log-Likelihood of a Collection of Normal-Block Models
Source:R/NormalBlockCollection-S3methods.R
logLik.NormalBlockCollection.RdReturns the log-likelihood of every model in a collection of normal-block models (see [NormalBlockVarCollectionClusters], [NormalBlockVarCollectionSparsity], [NormalBlockVarCollectionClustersSparsity]).
Usage
# S3 method for class 'NormalBlockCollection'
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] -566.5896 -423.2197 -403.1926 -403.1973