View source: R/NormalBlockCollection-S3methods.R
| logLik.NormalBlockCollection | R Documentation |
Returns the log-likelihood of every model in a collection of normal-block models (see NormalBlockVarCollectionClusters, NormalBlockVarCollectionSparsity, NormalBlockVarCollectionClustersSparsity).
## S3 method for class 'NormalBlockCollection'
logLik(object, ...)
object |
An object inheriting from NormalBlockCollection. |
... |
not used, only here for S3 compatibility |
A numeric vector of log-likelihood values, one per model in the collection.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.