normalizetest           package:sparseLDA           R Documentation

_N_o_r_m_a_l_i_z_e _t_e_s_t _d_a_t_a

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

     Normalize test data using output from the normalize() of the
     training data

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

     normalizetest(Xtst,Xn)

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

    Xtst: a matrix with the test data with observations down the rows
          and variables in the columns.

      Xn: List with the output from normalize(Xtr) of the training
          data.

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

     The function can e.g. be used to normalize the testing data in sda
     or smda.

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

     Returns the normalized test data 

    Xtst: The normalized data. 

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

     Line Clemmensen

_R_e_f_e_r_e_n_c_e_s:

     Clemmensen, L., Hastie, T. and Ersboell, K. (2007) "Sparse
     discriminant analysis", Technical report, IMM, Technical
     University of Denmark

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

     'normalize, sda, smda'

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

     ## Data
     Xtr<-matrix(sample(seq(3),12,replace=TRUE),nrow=3)
     Xtst<-matrix(sample(seq(3),12,replace=TRUE),nrow=3)

     ## Normalize training data 
     Nm<-normalize(Xtr)

     ## Normalize test data
     Xtst<-normalizetest(Xtst,Nm)

