Re: [R] R package Forecast

2011-06-29 Thread Dennis Murphy
Hi: Your object b is a 5 x 12 matrix. The error message says that ets() is expecting a univariate time series as its first argument. Try something like d <- ts(a[, 3], start = c(2005, 1), frequency = 12) fit <- ets(d) and see if that works. Untested since no reproducible example was provided. H

[R] R package Forecast

2011-06-29 Thread nejc bergant
Hello all First of all I must emphasize that I am fascinated about Forecast package. However I have difficulty to execute 'ets' procedure. After I write code: a<-read.table("test.txt", sep="\t", head=T) b<-matrix(a[,3], nrow=5, ncol=12, dimnames=list(c("2005","2006","2007","2008","2009"), c("jan"