View source: R/Sim.HMM.Gaussian.1d.R
Sim.HMM.Gaussian.1d | R Documentation |
This function simulates observations from a univariate Gaussian HMM
Sim.HMM.Gaussian.1d(mu, sigma, Q, eta0, n)
mu |
vector of means for each regime (r x 1); |
sigma |
vector of standard deviations for each regime (r x 1); |
Q |
Transition probality matrix (r x r); |
eta0 |
Initial value for the regime; |
n |
number of simulated observations. |
x |
Simulated Data |
reg |
Markov chain regimes |
Bouchra R Nasri and Bruno N RĂ©millard, January 31, 2019
Q <- matrix(c(0.8, 0.3, 0.2, 0.7),2,2) ; mu <- c(-0.3 ,0.7) ; sigma <- c(0.15,0.05);
sim <- Sim.HMM.Gaussian.1d(mu,sigma,Q,eta0=1,n=100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.