Skip to content

Instantly share code, notes, and snippets.

@andrewheiss
Created March 29, 2012 18:58
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 andrewheiss/2242089 to your computer and use it in GitHub Desktop.
Save andrewheiss/2242089 to your computer and use it in GitHub Desktop.
Tax forecasting
library(forecast)
budgetData <- read.csv(file.choose())
(series.ts <- ts(budgetData$taxTotals, start=c(1978, 1), frequency=4))
series.ets <- ets(series.ts, model="ZZZ")
series.forecast <- forecast(series.ets, h=5)
plot(series.forecast)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment