Model selection by BIC over candidate latent dimensions
Source:R/select_model_bic.R
select_model_bic.RdFor each value in latents, fits a model via fun(Y, X, q)
and computes the corresponding BIC. Returns the vector of BIC values
in the same order as latents.
Details
A progress bar is displayed via pbapply. The BIC
function used must be available in your namespace (e.g., colvR::BIC
if you define one, or stats::BIC if you call it explicitly).