genDataFile              package:rbugs              R Documentation

_G_e_n_e_r_a_t_i_n_g _t_h_e _D_a_t_a _F_i_l_e _f_o_r _B_U_G_S

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

     Generating the data file which can be used in the script file for
     runing BUGS batch-mode.

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

     genDataFile(dataList, dataFile)

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

dataList: A list of data that are needed by BUGS. Its elements must be
          numeric vector or matrices.

dataFile: A character string naming the file to print to. It must end
          with .txt to be recoganizable by BUGS.

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

     None.

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

     Jun Yan jyan@stat.uiowa.edu

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

     'genInitsFile', 'genBugsScript', 'format4Bugs'

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

     dat <- list(a = runif(1), b=rnorm(2), c=matrix(rexp(4), 2, 2))
     genDataFile(dat, "foo.txt")
     file.show("foo.txt")
     unlink("foo.txt")

