test4                  package:mcsm                  R Documentation

_R_e_p_l_i_c_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 is a front-end for the standard '{rpois}' Poisson
     generator.

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

     test4(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'.

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

     test3,rpois

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

     mean(test4())
     # produces [1] 100.0273

