bugs2jags                package:coda                R Documentation

_C_o_n_v_e_r_t _W_i_n_B_U_G_S _d_a_t_a _f_i_l_e _t_o _J_A_G_S _d_a_t_a _f_i_l_e

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

     'bugs2jags' converts a WinBUGS data in the format called "S-Plus"
     (i.e. the format created by the 'dput' function) and writes it in
     'dump' format used by JAGS.

     NB WinBUGS stores its arrays in row order.  This is different from
     R and JAGS which both store arrays in column order. This
     difference is taken into account by 'bugs2jags' which will
     automatically reorder the data in arrays, without changing the
     dimension.

     Not yet available in S-PLUS.

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

     bugs2jags(infile, outfile)

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

  infile: name of the input file

 outfile: name of the output file

_N_o_t_e:

     If the input file is saved from WinBUGS, it must be saved in plain
     text format. The default format for files saved from WinBUGS is a
     binary compound document format (with extension odc) that cannot
     be read by bugs2jags.

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

     Martyn Plummer

_R_e_f_e_r_e_n_c_e_s:

     Spiegelhalter DJ, Thomas A, Best NG and Lunn D (2003). _WinBUGS
     version 1.4 user manual_ MRC Biostatistics Unit, Cambridge, UK.

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

     'dput',  'dump'.

