test2                  package:mcsm                  R Documentation

_G_e_n_e_r_i_c _c_h_i-_s_q_u_a_r_e _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 'rchisq', designed for comparison
     with 'test1'.

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

     test2(Nsim = 10^4, df = 6)

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

    Nsim: Number of simulations

      df: Degrees of freedom

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

     This function replicates 'rchisq(Nsim,df)' and thus should not be
     used.

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

     test1,rchisq

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

     mean(test2())
     # produces [1] 5.955972

