| get_model | R Documentation |
Creates, without fitting it, the model (or collection of models) that
normal_block() would fit for the same arguments.
get_model(
data,
blocks,
sparsity = 0,
zero_inflation = FALSE,
control = NB_control(),
model = c("var", "mean")
)
data |
a NormalBlockData object, holding the responses (Y, n x p) and the covariates (X, n x d). |
blocks |
the clustering of the variables: a p x q indicator matrix
for a known clustering (e.g. |
sparsity |
the graphical-lasso penalty on Omega: |
zero_inflation |
whether to model an excess of exact zeros in Y. |
control |
a list of settings, built with |
model |
the model family: |
an R6 object: a model or a collection of models, not optimized yet.
ex_data <- generate_normal_block_var_data(n = 50, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex_data$Y, ex_data$X)
## the model is created but not fitted, unlike with normal_block()
model <- get_model(data, blocks = 3, control = NB_control(verbose = FALSE))
class(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.