

PlantGrowth {base}                           R Documentation

_R_e_s_u_l_t_s _f_r_o_m _a_n _E_x_p_e_r_i_m_e_n_t _o_n _P_l_a_n_t _G_r_o_w_t_h

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

     Results from an experiment to compare yields (as mea-
     sured by dried weight of plants) obtained under a con-
     trol and two different treatment conditions.

_U_s_a_g_e_:

     data(PlantGrowth)

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

     A data frame of 30 cases on 2 variables.

      [, 1]     weight     numeric
      [, 2]     group      factor

     The levels of `group' are `ctrl', `trt1', and `trt2'.

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

     Dobson, A. J. (1983).  An Introduction to Statistical
     Modelling.  London: Chapman and Hall.

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

     ## One factor ANOVA example from Dobson's book, cf. Table 7.4:
     data(PlantGrowth)
     boxplot(weight ~ group, data = PlantGrowth, main = "PlantGrowth data",
             ylab = "Dried weight of plants", col = "lightgray",
             notch = TRUE, varwidth = TRUE)
     anova(lm(weight ~ group, data = PlantGrowth))

