sawsha
1
library(forecast)
amtrak.data <- read.csv("/Users/shalaw/Downloads/Amtrak data.csv")
ridership.ts <- ts(amtrak.data$Ridership, start = c(1991, 1), end = c(2004, 3), freq = 12)
stepsAhead <- 36
nTrain<-length(ridership.ts)- stepsAhead
train.ts<-window(ridership.ts,start = c(1991,1),end = c(1991, nTrain))
Hello, what is the error message you received ?
We lack your Amtrack data.csv so can't run to see for ourselves...
system
Closed
3
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.