mcmc2                package:MCMCpack                R Documentation

_C_r_e_a_t_e _M_a_r_k_o_v _C_h_a_i_n _M_o_n_t_e _C_a_r_l_o _O_b_j_e_c_t_s

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

     The function mcmc2 is used to create a Markov chain Monte Carlo
     object. The data are taken to be a vector, or a matrix with one
     column per variable.  This works slightly differently than the
     'coda' function to make more efficient use of memory.

     An mcmc object may be summarized by the 'summary' function and
     visualized with the 'plot' function.

     MCMC objects resemble time series ('ts') objects and have methods
     for the generic functions 'time', 'start', 'end', 'frequency', and
     'window'.

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

     mcmc2(data= NA, start = 1, end = numeric(0), thin = 1)

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

    data: A vector or  matrix of MCMC output.

   start: The iteration number of the first observation.

     end: The iteration number of the last observation.

    thin: The thinning interval between consecutive observations.

_N_o_t_e:

     The format of the mcmc class has changed between coda version 0.3
     and 0.4.  Older mcmc objects will now cause 'is.mcmc' to fail with
     an appropriate warning message.  Obsolete mcmc objects can be
     upgraded with the 'mcmcUpgrade' function, which is part of the
     'coda' package.

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

     Martyn Plummer (slightly modified by Kevin Quinn)

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

     'mcmc2dataframe'

