Genetics              package:SASmixed              R Documentation

_H_e_r_i_t_a_b_i_l_i_t_y _d_a_t_a

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

     The `Genetics' data frame has 60 rows and 4 columns.

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

     This data frame contains the following columns:

     _L_o_c_a_t_i_o_n a factor with levels `1' to `4' 

     _B_l_o_c_k a factor with levels `1' to `3'

     _F_a_m_i_l_y a factor with levels `1' to `5'

     _Y_i_e_l_d a numeric vector of crop yields

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

     Littel, R. C., Milliken, G. A., Stroup, W. W., and Wolfinger, R.
     D. (1996), SAS System for Mixed Models, SAS Institute (Data Set
     4.5).

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

     library(SASmixed)
     data(Genetics)
     options(
       contrasts = c(unordered = "contr.SAS", ordered = "contr.poly"))
     formula( Genetics )
     fm1Gen <- lme( Yield ~ 1, data = Genetics,
        random = list(Location = pdCompSymm(~ Family - 1), Block = ~ 1) )
     summary( fm1Gen )
     VarCorr( fm1Gen )      # compare with Output 4.18, p. 165
     anova( fm1Gen )

