scalewt                 package:ade4                 R Documentation

_C_e_n_t_r_i_n_g _a_n_d _S_c_a_l_i_n_g _a _M_a_t_r_i_x _o_f _A_n_y _W_e_i_g_h_t_i_n_g

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

     transforms a numeric matrix in a centred and scaled matrix for any
     weighting.

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

     scalewt(X, wt = rep(1, nrow(X)), center = TRUE, scale = TRUE)

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

       X: a numeric matrix (like object)

      wt: a vector of weighting

  center: a logical value indicating whether the array should be
          centred

   scale: a logical value indicating whether the array should be scaled

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

     returns a centred, scaled matrix

_N_o_t_e:

     The norms are calculated with 1/n and the columns of null variance
     are still equal to zero.

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

     Daniel Chessel chessel@biomserv.univ-lyon1.fr

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

     scalewt(matrix(1:12,4,3))
     scale((matrix(1:12,4,3)))
     scale(matrix(1,4,3))
     scalewt(matrix(1,4,3))

