xdesign               package:Bolstad               R Documentation

_M_o_n_t_e _C_a_r_l_o _s_t_u_d_y _o_f _r_a_n_d_o_m_i_z_e_d _a_n_d _b_l_o_c_k_e_d _d_e_s_i_g_n_s

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

     Simulates completely randomized design and randomized block
     designs from a population of experimental units with underlying
     response values y and underlying other variable values x (possibly
     lurking)

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

             xdesign(x = NULL, y = NULL, corr = 0.8, size = 20, n.treatments = 4
                                             , n.rep = 500)

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

       x: a set of lurking values which are correlated with the
          response

       y: a set of response values

    corr: the correlation between the response and lurking variable

    size: the size of the treatment groups

n.treatments: the number of treatments

   n.rep: the number of Monte Carlo replicates

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

     If the ouput of xdesign is assigned to a variable, then a list is
     returned with the following components: 

block.means: a vector of the means of the lurking variable from each
          replicate of the simulation stored by treatment number within
          replicate number

treat.means: a vector of the means of the response variable from each
          replicate of the simulation stored by treatment number within
          replicate number

     ind: a vector containing the treatment group numbers. Note that
          there will be twice as many group numbers as there are
          treatments corresponding to the simulations done using a
          completely randomized design and the simulations done using a
          randomized block design

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

     # Carry out simulations using the default parameters 
     xdesign()
     # Carry out simulations using a simulated response with 5 treaments, groups of size 25, and a correlation of -0.6 between the response and lurking variable
     xdesign(corr=-0.6,size=25,n.treatments=5)

