Learn R Programming

NetworkChange (version 1.0.0)

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)

Value

Combined V matrix

Arguments

Vm

List of regime-specific V matrices

ej

List of regime indicators (optional, for pre-allocation sizing)

R

Number of latent dimensions