combineVm: Combine regime-specific V matrices efficiently
Description
Replaces Reduce(rbind, Vm) with pre-allocated matrix for better performance.
Used internally in MCMC loops.
Usage
combineVm(Vm, ej = NULL, R = NULL)
Arguments
- Vm
List of regime-specific V matrices
- ej
List of regime indicators (optional, for pre-allocation sizing)
- R
Number of latent dimensions