Refit CAVI after selecting the number of factors
refit_cavi.RdImplements a 2-step workflow: fit an initial CAVI model, post-process to obtain covariance components, select factor counts using an eigen-proportion rule, and refit CAVI with the selected K and J_s.
Arguments
- Y_list
List of S study matrices (each
n_s x P).- fit0
Optional initial fit from
fit_cavi().- post_fit0
Optional post-processed initial fit from
postprocess_cavi(). If bothfit0andpost_fit0are supplied,post_fit0is used.- cutoff
Eigen-proportion cutoff passed to
select_k_from_sigma().- ...
Passed to
fit_cavi()for the refit.
Value
Post-processed output of the refit (same structure as postprocess_cavi()).