search for: slide1_acc

Displaying 1 result from an estimated 1 matches for "slide1_acc".

2011 Jul 27
1
Hidden Markov Models in R
...lities, transition probabilities, and emission probabilities in R. This is what I have so far. hmm <- initHMM(c("stay", "switch"), c("correct", "incorrect"), c(.5, .5), matrix(c(.9, .1, .1, .9),2), matrix(c(.2, .8, .8, .2), 2)) dat$test <- ifelse(dat$Slide1_ACC == 0, "incorrect", "correct") viterbi(hmm, dat$test) The sequence of observations I run through the model is the feedback the participant receives. Any help would be greatly appreciated. I think what I want to do is run the model on each participant to generate the most pro...