[R] RHmm, mixture of gaussians, memory could not be "read" error

From: Xirisx <xirisx_at_gmail.com>
Date: Tue, 19 Apr 2011 14:11:03 +0300


Hi,

I'm trying to fit a hidden Markov model (mixture of Gaussians) to stock prices (Open, High, Low, Close) data. Here's my code:

#First download the data with package TTR
library(TTR)
n <- 200
data <- getYahooData("GOOG", strftime(as.POSIXlt(Sys.time() - n*24*3600),format="%Y%m%d")) keep <- c("Open","High","Low","Close")
data2 <- data[,keep]

#Now fit the Hidden Markov Model

library(RHmm);
HMMFit(data2, nStates=4, nMixt=3,dis="MIXTURE")

The HMMFit function returns usually an error (every once in a while it actually works, but if I run the command again it'll give the error) Rgui.exe-Application Error
The instruction at "0x00530057" referenced memory at "0x00530057". The memory could not be "read".

How can I work around this error and estimate my hidden Markov model parameters?

__________ Information from ESET Smart Security, version of virus signature database 4786 (20100119) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature database 4786 (20100119) __________

The message was checked by ESET Smart Security.

http://www.eset.com

        [[alternative HTML version deleted]]



R-help_at_r-project.org 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. Received on Tue 19 Apr 2011 - 11:58:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 19 Apr 2011 - 12:00:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive