On this Picostat.com statistics page, you will find information about the nottem data set which pertains to Average Monthly Temperatures at Nottingham, 1920–1939. The nottem data set is found in the datasets R package. You can load the nottem data set in R by issuing the following command at the console data("nottem"). This will load the data into a variable called nottem. If R says the nottem data set is not found, you can try installing the package by issuing this command install.packages("datasets") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the nottem R data set. The size of this file is about 4,450 bytes.
Average Monthly Temperatures at Nottingham, 1920–1939
A time series object containing average air temperatures at
Nottingham Castle in degrees Fahrenheit for 20 years.
Anderson, O. D. (1976)
Time Series Analysis and Forecasting: The Box-Jenkins approach.
Butterworths. Series R.
nott <- window(nottem, end = c(1936,12))
fit <- arima(nott, order = c(1,0,0), list(order = c(2,1,0), period = 12))
nott.fore <- predict(fit, n.ahead = 36)
ts.plot(nott, nott.fore$pred, nott.fore$pred+2*nott.fore$se,
nott.fore$pred-2*nott.fore$se, gpars = list(col = c(1,1,4,4)))
Dataset imported from https://www.r-project.org.