mysum                package:mixstock                R Documentation

_s_u_m_m_a_r_i_e_s _o_f _M_C_M_C _o_u_t_p_u_t

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

     calculates summary statistics of one or more columns of MCMC
     output

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

     mysum(x, names = NULL)
     mysumvec(x,names=NULL)

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

       x: a numeric matrix representing MCMC output

   names: vector of column names

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

     a slight variant on the standard numeric summary: calculates mean,
     median, standard deviation, and lower and upper 90 and 95 percent
     quantiles. 'mysum' gives a table (original data as rows, various
     stats as columns), while 'mysumvec' collapses the answer to a
     vector

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

     a numeric vector of results, appropriately named

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

       x = matrix(runif(1000),ncol=2,dimnames=list(NULL,c("A","B")))
       mysum(x)
       mysumvec(x)

