rvci                   package:rv                   R Documentation

_C_r_e_d_i_b_l_e (_U_n_c_e_r_t_a_i_n_t_y) _I_n_t_e_r_v_a_l_s _f_o_r _R_a_n_d_o_m _S_c_a_l_a_r_s

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

     Computes credible (uncertainty) intervals for a given vector.

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

       rvci(obj, interval=0.95, one.sided=FALSE, left=TRUE)

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

     obj: random scalar or vector

interval: a number between 0 and 1

one.sided: logical, FALSE if two-sided interval is desired

    left: logical, indicating if the left one-sided interval is desired

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

     For two-sided intervals, an array of numbers of dimension
     'c(2,length(x))', for one-sided intervals, a vector of the same
     length as '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:

       rvci(rvnorm(1), interval=0.683) # Should be about c(-1,1).

