MLBattend               package:UsingR               R Documentation

_M_a_j_o_r _l_e_a_g_u_e _b_a_s_e_b_a_l_l _a_t_t_e_n_d_a_n_c_e _d_a_t_a

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

     Data on home-game attendance in Major League Baseball for the
     years 1969-2000.

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

     data(MLBattend)

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

     A data frame with 838 observations on the following 10 variables.

     _f_r_a_n_c_h_i_s_e Which team

     _l_e_a_g_u_e American or National league

     _d_i_v_i_s_i_o_n Which division

     _y_e_a_r The year (the year 2000 is recorded as 0)

     _a_t_t_e_n_d_a_n_c_e Actual attendance

     _r_u_n_s._s_c_o_r_e_d Runs scored by the team during year

     _r_u_n_s._a_l_l_o_w_e_d Runs allows by the team during year

     _w_i_n_s Number of wins for season

     _l_o_s_s_e_s Number of losses for season

     _g_a_m_e_s._b_e_h_i_n_d A measure of how far from division winner the team
          was. Higher numbers are worse.

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

     This data was submitted to _The Journal of Statistical Education_
     by James J. Cochran, <URL:
     http://www.amstat.org/publications/jse/v10n2/datasets.cochran.html
     >.

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

     data(MLBattend)
     boxplot(attendance ~ franchise, MLBattend)
     with(MLBattend, cor(attendance,wins))

