designMatrix              package:limma              R Documentation

_C_o_n_s_t_r_u_c_t _D_e_s_i_g_n _M_a_t_r_i_x

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

     Construct a design matrix from the data.frame of target
     information. Currently only for two color array experiments using
     a common reference.

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

     designMatrix(targets, ref) 

_A_r_g_u_m_e_n_t_s:

 targets: data.frame with columns 'Cy3' and 'Cy5' specifying which RNA
          was hybridized to each array

     ref: character string giving name of reference RNA

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

     There is a need for design matrices for direct two-color design
     and for single-channel experiments but, this version is only for
     reference designs.

_V_a_l_u_e:

     The design matrix.

_A_u_t_h_o_r(_s):

     Gordon Smyth

_S_e_e _A_l_s_o:

     An overview of linear model functions in limma is given by
     5.LinearModels.

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

     targets <- data.frame(Cy3=c("Ref","Control","Ref","Treatment"),Cy5=c("Control","Ref","Treatment","Ref"))
     designMatrix(targets, "Ref")

