buildMCMC               package:BRugs               R Documentation

_G_e_n_e_r_a_t_i_n_g _m_c_m_c._l_i_s_t _o_b_j_e_c_t_s _f_o_r _p_a_c_k_a_g_e _c_o_d_a

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

     This functions reads samples from OpenBUGS and converts the
     results into an object of class mcmc.list that can directly be
     used by package coda for further analysis.

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

     buildMCMC(node, beg = samplesGetBeg(), end = samplesGetEnd(), 
         firstChain = samplesGetFirstChain(), 
         lastChain = samplesGetLastChain(), thin = samplesGetThin())

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

    node: Character vector of length 1, name of a variable in the
          model.

beg, end: Arguments to select a slice of monitored values corresponding
          to iterations 'beg:end'.

firstChain, lastChain: Arguments to select a sub group of chains.

    thin: To only use every 'thin'-th value of the stored sample.

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

     If the variable of interest is an array, slices of the array can
     be selected using the notation  'variable[lower0:upper0,
     lower1:upper1, ...]'.  A star ''*'' can be entered as shorthand
     for all the stored samples.

     If the arguments are left at their defaults the whole sample for
     all chains will be used for calculation.

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

     An object of class 'mcmc.list' which is a list containing 'mcmc'
     objects.

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

     'mcmc.list', 'mcmc', 'BRugs', 'help.WinBUGS'

