calcErrorParam             package:rhosp             R Documentation

_c_o_m_p_u_t_e _t_h_e _b_i_a_s, _v_a_r_i_a_n_c_e _o_f _t_h_e _n_o_n _p_a_r_a_m_e_t_r_i_c _e_s_t_i_m_a_t_o_r

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

     calcErrorNonParam computes the risk constant R with the non
     parametric estimator and its bias and variance.

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

     calcErrorParam(file, nb = 10, disXi = arg1Exp, disP = arg2Exp, plot = TRUE)

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

    file: the file in which the simulated data will be stored 

      nb: the number of 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 

    disP: the side effect probability (success  probability of Zi) p :
          disP is a 3 elements list : disfun <=> a distribution
          function ; nbparam <=> number of parameter of this
          distribution and param <=> a list of parameters 

    plot: a logical variable to plot the variable Zi 

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

     a list of the following components 

   bias : the bias of this estimator

    var : the variance of this estimator

       R: the risk constant estimated

      CR: the CR risk constant calculated with R

_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/3));
     #arg2Exp<-list(disfun=pexp,nbparam=1,param=list(1/5));

     #res<-calcErrorNonParam("data.rda",25,arg1Exp,arg2Exp,TRUE)

