ffDesMatrix               package:BHH2               R Documentation

_F_u_l_l _o_r _f_r_a_c_t_i_o_n_a_l _f_a_c_t_o_r_i_a_l _d_e_s_i_g_n _m_a_t_r_i_x _g_e_n_e_r_a_t_i_o_n

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

     The function generates the design matrix provided the number of
     2-levels design factors and defining relations.

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

     ffDesMatrix(k, gen = NULL)

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

       k: numeric. The number of 2-levels design factors in the
          designs.

     gen: list. If 'NULL' (default) a full factorial design is
          generated. Otherwise, each component of the list is a numeric
          vector of corresponding to each of the defining relations
          used to compose the design. See *Details*.

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

     A defining relation is declared by a vector where the first entry
     corresponds to the left hand side (LHS) of the defining equation.
     For example, if 'k=5', and 'gen=list(c(-5,1,2,3,4))', then the
     defining equation is -5=1*2*3*4. A full 2-levels (-1,1) factorial
     design is generated. For each defining relation the LHS column is
     replaced by the corresponding columns product. At the end repeated
     runs are removed from the matrix.

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

     The function returns a 2-levels design matrix with 'k' columns.

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

     Ernesto Barrios

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

     'conf.design' of the 'conf.design' package.

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

     ffDesMatrix(5) # Full 2^5 factorial design
     ffDesMatrix(5,gen=list(c(5,1,2,3,4))) # 2^(5-1) factorial design
     ffDesMatrix(5,gen=list(c(4,1,2),c(-5,1,3))) # 2^(5-2) factorial design

