Re: [R] Code for generating states and observations for HMM

2014-06-04 Thread Bukar Alhaji
? Thank you so much for givig me your time. Regards Zakir On Tuesday, June 3, 2014 11:32 PM, Rolf Turner wrote: You might find it helpful to look at the sim.hmm() function in the "hmm.discnp" package, or the simHMM() function in the "HMM" package. cheers, Rolf Turner

[R] Code for generating states and observations for HMM

2014-06-03 Thread Bukar Alhaji
Dear R buddies, Sorry for this silly question but am new to R. I am trying to generate states and observations to be use for Bayesian Hidden Markov Models analysis where i intend using mixture of Poisson and Negative binomial as emulsion. I use the code below to generate states and observation

[R] Bayesian HMM

2014-05-23 Thread Bukar Alhaji
Dear R buddies, I have this data X <- c(3  5  7  6 40  9  9  2  5  1  4  7  5 45  9 48 10  6  3  6  4  9  5  5  4 64  3 23 26  4  3  5  2  7  3 10  3  4 51 67  6  4  4  6  6   5 11  7  3  5) I would like to try a Bayesian method for the parameter estimation of the Hidden Markov model.  Could