stat.bwss                package:sma                R Documentation

_B_e_t_w_e_e_n _a_n_d _W_i_t_h_i_n _G_r_o_u_p _S_u_m _o_f _S_q_u_a_r_e_s _C_a_l_c_u_l_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     This function computes the between and within group sum of squares
     for each row of a matrix which may have NAs.

_U_s_a_g_e:

     stat.bwss(x, cl)

_A_r_g_u_m_e_n_t_s:

       x: a matrix, NAs allowed. In the microarray context, the rows of
          'X' could correspond to genes and the columns to different
          hybridizations.

      cl: column labels, must be consecutive integers.

_V_a_l_u_e:

     List containing the following components 

      wn: matrix with class sizes for each row of 'X';

      BW: vector of BSS/WSS for each row of 'X';

     BSS: between group sum of squares for each row of 'X';

     WSS: within group sum of squares for each row of 'X';

     TSS: total sum of squares for each row of 'X';

    tvar: variance for each row of 'X'.

_A_u_t_h_o_r(_s):

     Sandrine Dudoit, sandrine@stat.berkeley.edu  
      Jane Fridlyand, janef@stat.berkeley.edu

_R_e_f_e_r_e_n_c_e_s:

     S. Dudoit, J. Fridlyand, and T. P. Speed. Comparison of
     Discrimination Methods for the Classification of Tumors Using Gene
     Expression Data. June 2000. (Statistics, UC Berkeley,  Tech Report
     # 576).

_S_e_e _A_l_s_o:

     'var.na', 'var', 'apply'.

