After calling select_optimal_K_r_mfa (or a similar function),
you have $all_models containing fits for various (K, r). This
function extracts the model for a user-specified pair (K_target, r_target).
Arguments
- selection_obj
The object returned by
select_optimal_K_r_mfa.- K_target
Desired number of clusters.
- r_target
Desired factor dimension.
Examples
if (FALSE) { # \dontrun{
sel_obj <- select_optimal_K_r_mfa(my_data, Kvec=2:4, rvec=1:3)
best_model <- get_model_by_K_r(sel_obj, K_target=3, r_target=2)
} # }