Skip to content

Instantly share code, notes, and snippets.

@seaslee
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seaslee/ec621b82859626081153 to your computer and use it in GitHub Desktop.
Save seaslee/ec621b82859626081153 to your computer and use it in GitHub Desktop.
simple stats
d = read.csv('a.csv', head=T, sep=',')
p <-unlist(d)
pt <- ts(p, frequency=12, start=c(2015))
plot(pt)
library(forecast)
fit <- auto.arima(pt)
forecast(fit, h=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment