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)

