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:

     options(contrasts = c(unordered = "contr.SAS", ordered = "contr.poly"))
     str(Genetics)
     Genetics$LocFam <- with(Genetics, Location:Family)
     Genetics$LocBloc <- with(Genetics, Location:Block)
     ## Not run: 
     (fm1Gen <- lmer(Yield ~ 1 + (1|LocBloc) + (1|LocFam) + (1|Location), Genetics))
     (fm2Gen <- lmer(Yield ~ Family + (1|LocBloc) + (1|LocFam) + (1|Location), Genetics))
     ## End(Not run)

