Learn R Programming

NetworkChange (version 1.0.0)

ULUstateSample: Hidden State Sampler

Description

Sample hidden states from hidden Markov multilinear model. Uses vectorized operations for improved performance.

Usage

ULUstateSample(m, s, ZMUt, s2, P, SOS.random)

Value

A list of a state vector, state probabilities, and SOS.random.

Arguments

m

The number of break

s

Latent state vector

ZMUt

Z - MU

s2

error variance

P

Transition matrix

SOS.random

single observation state random perturbation