rv                    package:rv                    R Documentation

_R_a_n_d_o_m _V_e_c_t_o_r_s

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

     Creates or tests for objects of type ``'rv'".

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

     rv(length = 0)
     as.rv(x)
     is.rv(x)
     is.random(x)

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

  length: desired length.

       x: object to be coerced or tested.

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

     'rv' creates a random vector vector of the specified length. The
     elements of the vector are all equal to 0.

     'is.rv' returns TRUE if its argument is a rv object, FALSE
     otherwise.

     'as.rv' attempts to coerce its argument to the random vector (rv)
     type.

     'is.random' returns 'TRUE' or 'FALSE' for each component of the
     argument vector, depending on whether the component is  a random
     variable object.

_N_o_t_e:

     rv objects are internally lists with the class attribute set to
     ``'rv'".

_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. <URL:
     http://www.stat.columbia.edu/~kerman/Research/postsim.pdf>

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

     For a short version of the paper, type 'doc("rv")'.

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

       x <- rv(1)

