uniquecombs               package:mgcv               R Documentation

_f_i_n_d _t_h_e _u_n_i_q_u_e _r_o_w_s _i_n _a _m_a_t_r_i_x

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

     This routine returns a matrix containing all the unique rows of
     the matrix supplied as its argument. That is, all the duplicate
     rows are stripped out. Note that the ordering of the rows on exit
     is not the same as on entry.

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

     uniquecombs(x)

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

       x: is an R matrix 

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

     Models with more parameters than unique combinations of covariates
     are not identifiable. This routine provides a means of evaluating
     the number of unique combinations of coavariates in a model. The
     routine calls compiled C code.

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

     A matrix consisting of the unique rows of 'x' (in arbitrary
     order).

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

     Simon N. Wood simon@stats.gla.ac.uk

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

     X<-matrix(c(1,2,3,1,2,3,4,5,6,1,3,2,4,5,6,1,1,1),6,3,byrow=TRUE)
     print(X)
     uniquecombs(X)

