JAGScontrol             package:bayesmix             R Documentation

_C_r_e_a_t_e_s _t_e_x_t _f_o_r ._c_m_d _f_i_l_e

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

     Creates the text for the file where all the commands for jags are
     included.

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

     JAGScontrol(variables, draw = 1000, burnIn = 0, seed)

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

variables: names of variables which shall be monitored.

    draw: number of monitored draws.

  burnIn: number of discarded burn-in draws.

    seed: integer setting the seed for the RNG.

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

     This function creates the text for the .cmd-file. It includes
     information on the number of burn-in draws and monitored draws.
     Furthermore, it states which variables shall be monitored and it
     possibly specifies a seed. The information on the prefix of the
     files containing model, data and initial value is missing. By
     inserting the prefix between the elements of the vector containing
     the text a .cmd-file can be created which can be used for calling
     jags in batch mode.

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

     An object of class 'JAGScontrol' is returned which is a list
     containing the following components:  

    text: a vector of strings which contains all commands for running
          jags. For creating a .cmd-file the prefix of the files has to
          be inserted.

variables: a vector containing the names of the monitored variables.

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

     Bettina Gruen

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

     'JAGSrun'

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

     control <- JAGScontrol(variables = "mu")
     control

