chickwts              package:datasets              R Documentation

_C_h_i_c_k_e_n _W_e_i_g_h_t_s _b_y _F_e_e_d _T_y_p_e

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

     An experiment was conducted to measure and compare the
     effectiveness of various feed supplements on the growth rate of
     chickens.

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

     chickwts

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

     A data frame with 71 observations on 2 variables.

     _w_e_i_g_h_t a numeric variable giving the chick weight.

     _f_e_e_d a factor giving the feed type.

_D_e_t_a_i_l_s:

     Newly hatched chicks were randomly allocated into six groups, and
     each group was given a different feed supplement.  Their weights
     in grams after six weeks are given along with feed types.

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

     Anonymous (1948) _Biometrika_, *35*, 214.

_R_e_f_e_r_e_n_c_e_s:

     McNeil, D. R. (1977) _Interactive Data Analysis_. New York: Wiley.

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

     require(stats)
     boxplot(weight ~ feed, data = chickwts, col = "lightgray",
         varwidth = TRUE, notch = TRUE, main = "chickwt data",
         ylab = "Weight at six weeks (gm)")
     anova(fm1 <- lm(weight ~ feed, data = chickwts))
     opar <- par(mfrow = c(2, 2), oma = c(0, 0, 1.1, 0),
                 mar = c(4.1, 4.1, 2.1, 1.1))
     plot(fm1)
     par(opar)

