test3                  package:mcsm                  R Documentation

_A_p_p_r_o_x_i_m_a_t_e _P_o_i_s_s_o_n _g_e_n_e_r_a_t_o_r

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

     This function considers the possible values of a Poisson random
     variable to lay within '3*sqrt(lambda)' of lambda and is proposed
     for comparison with the regular 'rpois' generator.

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

     test3(Nsim = 10^4, lambda = 100)

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

    Nsim: Number of simulations

  lambda: Poisson parameter

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

     This function replicates 'rpois(Nsim,lambda)' and thus should not
     be used.

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

     This function produces a integer vector of size 'Nsim'

_w_a_r_n_i_n_g:

     The output is not an exact Poisson sample because of the
     truncation on the support. Use 'rpois' instead.

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

     Christian P. Robert and George Casella

_R_e_f_e_r_e_n_c_e_s:

     From Chapter 2 of *EnteR Monte Carlo Statistical Methods*

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

     test4,rpois

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

     mean(test3(Nsim=10^4))
     # providing [1] 114

