asMatrixWeights            package:limma            R Documentation

_a_s_M_a_t_r_i_x_W_e_i_g_h_t_s

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

     Convert probe-weights or array-weights to a matrix of weights.

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

     asMatrixWeights(weights, dim)

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

 weights: numeric matrix of weights, rows corresponding to probes and
          columns to arrays. Or vector of probe weights. Or vector of
          array weights.

     dim: numeric dimension vector of length 2, i.e., the number of
          probes and the number of arrays.

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

     This function converts a vector or probe-weights or a vector of
     array-weights to a matrix of the correct size. Probe-weights are
     repeated across rows while array-weights are repeated down the
     columns. If 'weights' has length equal to the number of probes, it
     is assumed to contain probe-weights. If it has length equal to the
     number of arrays, it is assumed to contain array-weights. If the
     number of probes is equal to the number of arrays, then 'weights'
     is assumed to contain array-weights if it is a row-vector of the
     correct size, i.e., if it is a matrix with one row.

     This function is used internally by the linear model fitting
     functions in limma.

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

     Numeric matrix of dimension 'dim'.

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

     Gordon Smyth

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

     'modifyWeights'.

     An overview of functions in LIMMA used for fitting linear models
     is given in 06.LinearModels.

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

     asMatrixWeights(1:3,c(4,3))
     asMatrixWeights(1:4,c(4,3))

