Hi, 
I have encountered the following error, when running 'depmix' function, which I 
think 
has something to do with my data, and I cannot understand why, even though i 
have converted my data into as.matrix()
See attached file 
library(depmixS4)
library(TTR)
library(ggplot2)
library(reshape2)
data1 = read.csv("EURJPY.m144011.csv", header=T)
data1=as.matrix(data1)
data.ts=ts(data1)
deret <- 100*logret(data.ts, demean = TRUE)
mod <- depmix(logret ~ 1, family = gaussian(), nstates = 4, data = deret)
set.seed(1)
fm2 <- fit(mod, verbose = FALSE)
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to