JohnsonJohnson           package:datasets           R Documentation

_Q_u_a_r_t_e_r_l_y _E_a_r_n_i_n_g_s _p_e_r _J_o_h_n_s_o_n & _J_o_h_n_s_o_n _S_h_a_r_e

_D_e_s_c_r_i_p_t_i_o_n:

     Quarterly earnings (dollars) per Johnson & Johnson share 1960-80.

_U_s_a_g_e:

     JohnsonJohnson

_F_o_r_m_a_t:

     A quarterly time series

_S_o_u_r_c_e:

     Shumway, R. H. and Stoffer, D. S. (2000) _Time Series Analysis and
     its Applications_. Second Edition.  Springer.  Example 1.1.

_E_x_a_m_p_l_e_s:

     require(stats)
     JJ <- log10(JohnsonJohnson)
     plot(JJ)
     (fit <- StructTS(JJ, type="BSM"))
     tsdiag(fit)
     sm <- tsSmooth(fit)
     plot(cbind(JJ, sm[, 1], sm[, 3]-0.5), plot.type = "single",
          col = c("black", "green", "blue"))
     abline(h = -0.5, col = "grey60")

     monthplot(fit)

