simul2                 package:rhosp                 R Documentation

_s_i_m_u_l_a_t_e _t_h_e _s_e_c_o_n_d _m_o_d_e_l _o_f _t_h_e _h_o_s_p_i_t_a_l _r_i_s_k

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

     simul simulate the first model of the hospital that is to say 
     simulating the sequence of variables Xi (which follow the disxi
     distribution passed as an argument) and the sequence of Zi (where
     the probability of succes p is passed as an argument) simul
     returns T the vector of durations between two declared side
     effects

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

     simul2(nbPatient, disXi, disYi, toplot = TRUE)

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

nbPatient: the number of patient of the simulation

   disXi: the distribution of the variable Xi : disXi is a 3 elements
          list : rangen <=>  a random positive variable generator ;
          nbparam <=> number of parameter of this distribution and
          param <=> a list of parameters 

   disYi: the distribution of the variable Yi : disYi is a 3 elements
          list : rangen <=>  a random positive variable generator ;
          nbparam <=> number of parameter of this distribution and
          param <=> a list of parameters 

  toplot: a logical variable to plot the variable Zi

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

     T the vector of durations between two declared side effects

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

     CJ

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

     arg1Exp<-list(rangen=rexp,nbparam=1,param=list(1/2));
     arg2Exp<-list(rangen=rexp,nbparam=1,param=list(1/20));
     T<-simul2(100,arg1Exp,arg2Exp)

