polyap               package:polyapost               R Documentation

_P_o_l_y_a _s_a_m_p_l_i_n_g _f_r_o_m _a_n _u_r_n

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

     Consider an urn containing a finite set of values. An item is
     selected at random from the urn. Then it is returned to the urn
     along with another item with the same value. Next a value is
     selected at random from the reconstituted urn and it and a copy
     our returned to the urn. This process is repeated until k
     additional items have been added to the original urn. The original
     composition of the urn along with the selected values, in order,
     are returned.

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

     polyap(ysamp, k)

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

   ysamp: A vector of real numbers which make up the urn.

       k: A positive integer which specifies the number of items added
          to the original composition of the urn.

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

     The returned value is a vector of length equal to the length of
     ysamp  plus k

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

     polyap(c(0,1),20)

