combineVm: Combine regime-specific V matrices efficiently

View source: R/Utils.R

combineVmR Documentation

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

Value

Combined V matrix


NetworkChange documentation built on Jan. 21, 2026, 9:08 a.m.