gen.factorial           package:AlgDesign           R Documentation

_G_e_n_e_r_a_t_e_s _a _f_u_l_l _f_a_c_t_o_r_i_a_l _d_e_s_i_g_n

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

     A full factorial design is generated.

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

             gen.factorial(levels, nVars=0, center=TRUE, factors="none",varNames=NULL)

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

  levels: A vector of levels for the variables. May be an integer if
          nVars is specified.

   nVars: The number of variables.

  center: If TRUE, all non-factors will be centered.

 factors: If "all", all variables are factors, otherwise a vector of
          the variable numbers of the variables that are to be factors.

varNames: The names of the variables.

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

     A factorial design in a data.frame.

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

     Bob Wheeler bwheeler@echip.com

     Please cite this program as follows:

     Wheeler, R.E. (2004). gen.factorial. _AlgDesign_. The R project
     for statistical computing <URL: http://www.r-project.org/>

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

     dat<-gen.factorial(3,3)
     dat<-gen.factorial(c(3,2,3))
     dat<-gen.factorial(3,3,factors="all")
     dat<-gen.factorial(3,3,varNames=c("A","B","C"))

