combos               package:hier.part               R Documentation

_A_l_l _c_o_m_b_i_n_a_t_i_o_n_s _o_f _a _h_i_e_r_a_r_c_h_y _o_f _m_o_d_e_l_s _o_f _n _v_a_r_i_a_b_l_e_s

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

     Lists a matrix of combinations of 1 to n variables in ascending
     order

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

       combos(n)

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

       n: an integer: the number of variables 

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

     Lists hierarchy of all possible combinations of n variables in
     ascending order, starting with 1 variable, then all combinations
     of 2 variables, and so on until the one combination with all n
     variables.  This function is used by 'all.regs' to structure the
     models required for hierarchical partioning.  This function
     requires the gtools package in the gregmisc bundle.

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

     a list containing 

  ragged: a matrix with zeroes in empty elements and 1 in column 1, 2
          in column 2 ... n in column n for full elements 

  binary: a matrix as for ragged, but with 1 in all full elements 

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

     Chris Walsh Chris.Walsh@sci.monash.edu.au

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

     'all.regs'

