Re: [R] Hidden Markov Models in R

2011-07-28 Thread Ingmar Visser
Dear Edward, Without knowing what you want exactly, it is basically impossible to help you out. The following code (with simulated data) works just fine. In what sense did you not have success with HMM and/or depmixS4? Best, Ingmar library(HMM) dat <- data.frame(Slide1_ACC=sample(c(0,1),100,rep=T

[R] Hidden Markov Models in R

2011-07-27 Thread Edward Patzelt
R Community - I am attempting to fit a model as described in Hampton, Bossaerts, and O'doherty (J. Neuroscience) 2006. They use a bayesian hidden markov model to model the Reversal Learning data. I have tried using HMM and depmixS4 with no success. My data is a Reversal Learning Task in which t