| updateUm_cpp | R Documentation |
Updates U for each regime using optimized matrix operations.
updateUm_cpp(ns, U, V, R, Zm, Km, ej, s2, eU, iVU, UL_Normal)
ns |
Number of hidden states |
U |
List of regime-specific latent node positions |
V |
Combined V matrix |
R |
Dimension of latent space |
Zm |
List of regime-specific (Z - beta) arrays |
Km |
List of regime-specific dimensions |
ej |
List of regime indicators (binary vectors) |
s2 |
Vector of regime-specific error variances |
eU |
List of regime-specific prior means for U |
iVU |
List of regime-specific prior precision matrices for U |
UL_Normal |
Normalization method: "Normal" or "Orthonormal" |
List of updated regime-specific U matrices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.