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))

