Difference between revisions of "R TimeSeries"

From ECLR
Jump to: navigation, search
(Created page with "In this section we will demonstrate how to do basic univariate time-series modelling with R. We will use a package written by [http://robjhyndman.com Rob Hyndman], called "for...")
 
Line 3: Line 3:
 
     install.packages("forecast")
 
     install.packages("forecast")
  
But note that this package requires R of version 3. Here we will use
+
But note that this package requires R of version 3. Then at the beginning of your code you will have to import the library by adding
 +
 
 +
    library(forecast)
 +
 
 +
to your code. Here we will use a dataset on UK CPI.
  
 
== Importing Data ==
 
== Importing Data ==

Revision as of 20:54, 11 February 2015

In this section we will demonstrate how to do basic univariate time-series modelling with R. We will use a package written by Rob Hyndman, called "forecast". So before you get started you need to go to R and

   install.packages("forecast")

But note that this package requires R of version 3. Then at the beginning of your code you will have to import the library by adding

   library(forecast)

to your code. Here we will use a dataset on UK CPI.

Importing Data

Additional Resources

  • A very quick intro from Quick-R can be found here [1]
  • We are using the package "forecast" authored by Rob Hyndman who has also written an online textbook on the topic of forecasting [2]
  • To access some very useful data-series in a very convenient way we will also use the QUANDL package.