read.betas              package:eiPack              R Documentation

_F_u_n_c_t_i_o_n _t_o _r_e_a_d _i_n _e_i_M_D _p_a_r_a_m_e_t_e_r _c_h_a_i_n_s _s_a_v_e_d _t_o _d_i_s_k

_D_e_s_c_r_i_p_t_i_o_n:

     In 'ei.MD.bayes', users have the option to save parameter chains
     for the unit-level betas to disk rather than returning them to the
     workspace.  This function reconstructs the parameter chains by
     reading them back into R and producing either an array or an
     'mcmc' object.

_U_s_a_g_e:

     read.betas(rows, columns, units, dir = NULL, ret.mcmc = TRUE) 

_A_r_g_u_m_e_n_t_s:

    rows: a character vector of the row marginals to be read back in

 columns: a character vector of the column marginals to be read back in

   units: a character of numeric vector with the units to be read back
          in

     dir: an optional character string identifying the directory in
          which parameter chains are stored (defaults to 'getwd')

ret.mcmc: a logical value specifying whether to return the parameters
          as an 'mcmc' object (defaults to 'TRUE')

_V_a_l_u_e:

     If 'ret.mcmc = TRUE', an 'mcmc' object with row names
     corresponding to the parameter chains.  If 'ret.mcmc = FALSE', an
     array with dimensions named according to the selected 'rows',
     'columns', and 'units'.

_A_u_t_h_o_r(_s):

     Olivia Lau <olivia.lau@post.harvard.edu>

_S_e_e _A_l_s_o:

     'ei.MD.bayes','mcmc'

