rvboot                  package:rv                  R Documentation

_G_e_n_e_r_a_t_e _a _R_a_n_d_o_m _V_e_c_t_o_r _f_r_o_m _a_n _E_m_p_i_r_i_c_a_l _D_i_s_t_r_i_b_u_t_i_o_n

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

     'rvboot' generates a random vector of the same length as data from
     the empirical distribution of the data.

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

       rvboot(data)

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

    data: A vector of constants

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

     'rvboot'

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

       y <- rnorm(30) # Some data.
       x <- rvboot(y) # A random vector of length 30 (each component has the same distribution)
       print(mean(x)) # Bootstrap estimate of the mean.
       print(sd(x))   # Bootstrap estimate of the sd.
       rvinci(mean(x), 0) # Hypothesis test: mean of x is zero (at 5

