R2Bugsdat1w              package:BSagri              R Documentation

_F_o_r _i_n_t_e_r_n_a_l _u_s_e

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

     Transform a data set to a dataset appropriate for certain OpenBUGS
     models.

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

     R2Bugsdat1w(formula, data)

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

 formula: a formula of the style 'response ~ treatment', where
          'response' is a numeric or integer variable, and 'treatment'
          is a factor variable in 'data' 

    data: a data.frame, containing the 'response'- and
          'treatment'-variables in 'formula' 

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

     For internal use.

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

     a list, containing the elements

bugsdat : a list of variables appropriate for certain BUGS models

parameters : a vector of character strings, naming the parameters to
          save for a call to OpenBUGS

  inits : a vector of initial values for the parameters

   data : the original data set

Intercept : a single logical indicating whether an Intercept was used
          to parameterize the factor variable

