JAGSsetup              package:bayesmix              R Documentation

_C_r_e_a_t_i_o_n _o_f _n_e_c_e_s_s_a_r_y _i_n_p_u_t _f_i_l_e_s _f_o_r _j_a_g_s

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

     Given the model and the control specifications the input files
     (.bug, -data.R, -inits.R, .cmd) for jags are created with 'prefix'
     as their names.

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

     JAGSsetup(model, y, prefix, control, ...)

     ## Default S3 method:
     JAGSsetup(model, y, prefix, control, ...)
     ## S3 method for class 'BMMsetup':
     JAGSsetup(model, y, prefix, control, ...)

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

   model: 'JAGSmodel' object or output from 'BMMmodel'.

       y: a numeric vector.

  prefix: string: prefix for .bug, -data.R, -inits.R and .cmd-file.

 control: named list or 'JAGScontrol' object.

     ...: additional parameters handed over to 'BMMmodel'.

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

     'control' needs to have a component 'text' which is written into
     the .cmd file after inserting the 'prefix' where necessary.

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

     After creating the files 'prefix'"-data.R", 'prefix'"-inits.R",
     'prefix'".bug" and 'prefix'".cmd" it returns a list with the
     following components 

 control: input argument 'control' with 'prefix' inserted in the
          component'text'.

   model: 'JAGSmodel' object

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

     Bettina Gruen

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

     'BMMmodel', 'JAGScontrol'

