tsdiag package:stats R Documentation _D_i_a_g_n_o_s_t_i_c _P_l_o_t_s _f_o_r _T_i_m_e-_S_e_r_i_e_s _F_i_t_s _D_e_s_c_r_i_p_t_i_o_n: A generic function to plot time-series diagnostics. _U_s_a_g_e: tsdiag(object, gof.lag, ...) _A_r_g_u_m_e_n_t_s: object: a fitted time-series model gof.lag: the maximum number of lags for a Portmanteau goodness-of-fit test ...: further arguments to be passed to particular methods _D_e_t_a_i_l_s: This is a generic function. It will generally plot the residuals, often standardized, the autocorrelation function of the residuals, and the p-values of a Portmanteau test for all lags up to 'gof.lag'. The methods for 'arima' and 'StructTS' objects plots residuals scaled by the estimate of their (individual) variance, and use the Ljung-Box version of the portmanteau test. _V_a_l_u_e: None. Diagnostics are plotted. _S_e_e _A_l_s_o: 'arima', 'StructTS', 'Box.test' _E_x_a_m_p_l_e_s: ## Not run: require(graphics) fit <- arima(lh, c(1,0,0)) tsdiag(fit) ## see also examples(arima) (fit <- StructTS(log10(JohnsonJohnson), type="BSM")) tsdiag(fit) ## End(Not run)