makeContrasts             package:limma             R Documentation

_C_o_n_s_t_r_u_c_t _M_a_t_r_i_x _o_f _C_u_s_t_o_m _C_o_n_t_r_a_s_t_s

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

     Construct the contrasts matrix corresponding to specified
     contrasts of a set of given parameters.

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

     makeContrasts(..., levels) 

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

     ...: expressions, or character strings which can be parsed to
          expressions, specifying contrasts

  levels: character vector giving the names of the parameters to be
          contrasts, or a factor or design matrix from which the names
          can be extracted.

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

     Matrix which columns corresponding to contrasts.

_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:

     makeContrasts(B-A,C-B,C-A,levels=c("A","B","C"))
     makeContrasts("A","B","B-A",levels=c("A","B"))

