rvAdapted                 package:rv                 R Documentation

_F_u_n_c_t_i_o_n_s _a_d_a_p_t_e_d _t_o _a_c_c_e_p_t _r_a_n_d_o_m _v_a_r_i_a_b_l_e (_r_v) _o_b_j_e_c_t_s

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

     Functions that have been adapted to work with rv objects.

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

      c(..., recursive=FALSE)
      x %*% y
      is.vector(x, mode="any")
      max(..., na.rm = FALSE)
      pmax(..., na.rm = FALSE)
      min(..., na.rm = FALSE)
      pmin(..., na.rm = FALSE) 
      median(x, na.rm = FALSE) 

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

     These functions have been adapted to work with rv objects (since
     no _real_ object-oriented generic version is available). They
     check whether an rv object has been passed as an argument; if
     false, the original function will be called. 

     To restore the original functions, detach the package;  use
     'detachrv()'.

_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.

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

     'cov' for details about the 'cov' and 'var' functions adapted for
     random variable objects.

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

       x <- rvnorm(10) # A random vector.
       median(x)       # A random variable.
       max(x)          # Another random variable.  

