Hello R users,
I am suing library(hmm.discnp)
I have a vector
y
".... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0
[741] 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 2 2 1 0 0 0 0 0...."
So I did
y=y+1 (Otherwise R crahsed)
"... 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 6 1 1 1 1 1 1 1 1 1 1 1 1 1
[741] 1 1 1 1 1 1 1 1 1 6 1 1 1 1 1 1 1 3 3 2 1 1 ..."
I try to fit a hidden markov model with two states.
hmm(y,K=2)
and this is what I get
Error in FUN(X[[1L]], ...) : subscript out of bounds?
where is my error?
Thanks,
below is the system I use.
version.string R version 2.8.1 (2008-12-22)
platform i686-suse-linux-gnu
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.