[R] ts and stl functions

From: Daniel sutcliffe <dnlsutcliffe_at_yahoo.co.uk>
Date: Wed 12 Jul 2006 - 23:53:25 EST


Hi,

I have imported a csv file into R which contains one column (the rate er 100,000 population of a disease, by month over 11 years) I coerced into a time series using the following function,

tstkr<-ts(tkr,deltat=1/12)

This seems to work fine, and when I check for the class of the object using class(tstkr) I get "ts" as the response.

When I try to use the stl function in stats I get the error message:

Error in stl(tstkr)only univariate series are allowed

I then tried this:

tstkr <- ts(c(tkr), deltat=1/12)

however this made no difference...I still get an error - does anybody know what is wrong?

Regards,

Daniel                  


        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 13 00:01:11 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 13 Jul 2006 - 02:18:04 EST.

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