EvaluationList-class        package:distrTEst        R Documentation

_C_l_a_s_s "_E_v_a_l_u_a_t_i_o_n_L_i_s_t"

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

     Several objects of class "Evaluation" may be gathered in a list of
     class "EvaluationList", if they all have the same result-format
     and also share the same data-set.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects may be created by the generating function
     'EvaluationList', i.e.;  'EvaluationList(...,name0="a list of
     \"Evaluation\" objects")', where all arguments passed through ... 
     have to be objects of class "Evaluation" name, the corresponding
     result-slots have to contain  data.frames of identical dimension;
     the corresponding calls have to have identical 'object'-arguments 
     (for the data set), and the corresponding 'Data'-slots have to
     identical.

_S_l_o_t_s:

     '_n_a_m_e': Object of class '"character"': the name of the
          EvaluationList object

     '_E_l_i_s_t': Object of class '"list"': the list of Evaluation objects

_A_c_c_e_s_o_r/_R_e_p_l_a_c_e_m_e_n_t _m_e_t_h_o_d_s:

     _E_l_i_s_t 'signature(object = "EvaluationList")': returns the list
          with the Evaluation objects

     _n_a_m_e 'signature(object = "EvaluationList")': returns/modifies the
          name of the EvaluationList object 

_M_e_t_h_o_d_s:

     _D_a_t_a 'signature(object = "EvaluationList")': returns the common
          'Data'-slot  of one of the Evaluation objects

     _p_l_o_t 'signature(object = "EvaluationList")': returns grouped
          boxplots of the results 

     _p_r_i_n_t 'signature(object = "EvaluationList")': for each list
          element returns  the name of the data object, its filename,
          the estimator used and the result 

     _s_h_o_w 'signature(object = "EvaluationList")': as print

     _s_u_m_m_a_r_y 'signature(object = "EvaluationList")': returns the name
          of the data object, its filename, the estimator used and a
          statistical summary of the result 

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

     Thomas Stabla statho3@web.de,
       Florian Camphausen fcampi@gmx.de,
      Peter Ruckdeschel Peter.Ruckdeschel@uni-bayreuth.de,
       Matthias Kohl Matthias.Kohl@stamats.de

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

     'Dataclass-class' 'Simulation-class' 'Contsimulation-class'
     'Evaluation-class' 'print-methods' 'plot-methods'
     'simulate-methods' 'summary-methods'

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

     N <- Norm() # N is a standard normal distribution.
     C <- Cauchy() # C is a Cauchy distribution
     cs <- Contsimulation(filename = "csim",
                          runs = 15,
                          samplesize=500,
                          seed=setRNG(),
                          distribution.id = N,
                          distribution.c = C,
                          rate = 0.1)
     simulate(cs)
     # Each of the 25000 random numbers is ideal (N-distributed) with
     # probability 0.9 and contaminated (C-distributed) with probability = 0.1
     summary(cs)
     ev1 <- evaluate(cs, mean) # estimates the data with mean
     ev1 # bad results
     ev2 <- evaluate(cs,median) # estimates the data with median
     ev2 # better results because median is robust
     savedata(ev1)
     # saves the EvaluationList with result as "csim.mean" and without result as
     # "csim.mean.comment" in the working directory # of R - "csim" is the
     # filename of the Contsimulation object, mean the name of the estimator
     rm(ev1)
     cload("csim.mean")
     # loads the EvaluationList without result - the object is called ev1.comment
     ev1.comment
     load("csim.mean") # loads the EvaluationList with result
     ev1
     ElistObj <- EvaluationList(ev1,ev2,name0="myEvalList")
     plot(ElistObj,ylim=matrix(c(-0.5,0.5,0.5,4),nrow=2),main=c("location","scale"))
     plot(ElistObj,ylim=c(-0.5,0.5),main=c("location"),runs0=3:12,dims0=1,evals0=2)
     ElistObj
     summary(ElistObj)

