rvsample                 package:rv                 R Documentation

_S_a_m_p_l_e _f_r_o_m _t_h_e _S_i_m_u_l_a_t_i_o_n _M_a_t_r_i_x _o_f _a _R_a_n_d_o_m _V_a_r_i_a_b_l_e

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

     Draws a sample of desired size from each component of a given
     random variable 'x'.

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

       rvsample(x, size=1, replace=TRUE, prob=NULL)

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

       x: an object

    size: size of the sample

 replace: sample with replacement?

    prob: optional probability vector, usually not needed

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

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

     A _numeric_ array of dimensions 'size' times 'length(x)'.

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

     Jouni Kerman kerman@stat.columbia.edu <URL:
     http://www.stat.columbia.edu/~kerman>

_R_e_f_e_r_e_n_c_e_s:

     Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing
     Posterior Simulations Using Random Variable Objects. Technical
     report, Columbia University, New York.

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

       #

