nottem package:datasets R Documentation _A_v_e_r_a_g_e _M_o_n_t_h_l_y _T_e_m_p_e_r_a_t_u_r_e_s _a_t _N_o_t_t_i_n_g_h_a_m, _1_9_2_0-_1_9_3_9 _D_e_s_c_r_i_p_t_i_o_n: A time series object containing average air temperatures at Nottingham Castle in degrees Fahrenheit for 20 years. _U_s_a_g_e: nottem _S_o_u_r_c_e: Anderson, O. D. (1976) _Time Series Analysis and Forecasting: The Box-Jenkins approach._ Butterworths. Series R. _E_x_a_m_p_l_e_s: ## Not run: require(stats); require(graphics) 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))) ## End(Not run)