Update latent states
updateS( iter, s, V, m, Zb, Zt, Time, MU.state, P, s2, N.upper.tri, random.perturb )
iter
: iteration numbers
: the most recent latent statesV
: Network generation rulesm
: The number of breaksZb
: Z - bZt
: Z stacked by timeTime
: The length of timeMU.state
: UVU for each stateP
: Transition matrixs2
: error varianceN.upper.tri
: The number of upper triangular elementsrandom.perturb
: If random.perturb
= TRUE and a single state observation is found, the latent state is randomly selected by equal weights.A list of vectors containing latent states and their probabilities