perc               package:simpleboot               R Documentation

_E_x_t_r_a_c_t _p_e_r_c_e_n_t_i_l_e_s _f_r_o_m _a _b_o_o_t_s_t_r_a_p _s_a_m_p_l_i_n_g _d_i_s_t_r_i_b_u_t_i_o_n.

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

     'perc' can be used to extract percentiles from the sampling
     distribution of a statistic.

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

     perc(boot.out, p = c(0.025, 0.975))
     perc.lm(lm.boot.obj, p)

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

boot.out: Output from either 'one.boot', 'two.boot', or 'pairs.boot'.

       p: numeric vector with values in [0, 1].

lm.boot.obj: An object of class '"lm.simpleboot"', returned from
          'lm.boot'.

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

     'perc' automatically calls 'perc.lm' if 'boot.out' is of the class
     '"lm.simpleboot"' so there is no need to use 'perc.lm' separately.

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

     For bootstraps which are not linear model bootstraps, 'perc'
     returns a vector of percentiles of length 'length(p)'.  Linear
     interpolation of percentiles is done if necessary.  'perc.lm'
     returns a matrix of percentiles of each of the model coefficients.
      For example, if there are k model coefficients, the 'perc.lm'
     returns a 'length(p)' by k matrix.

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

     Roger D. Peng

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

     x <- rnorm(100)
     b <- one.boot(x, median, R = 1000)
     perc(b, c(.90, .95, .99))

