rtest                  package:ade4                  R Documentation

_C_l_a_s_s _o_f _t_h_e _P_e_r_m_u_t_a_t_i_o_n _T_e_s_t_s (_i_n _R).

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

     rtest is a generic function. It proposes methods for the following
     objects 'between', 'discrimin', 'procuste' '...'

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

         rtest(xtest, ...)
         plot.rtest(x, nclass = 10, coeff = 1, ...)
         as.rtest (sim, obs, call = match.call())
         print.rtest (x, ...)

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

   xtest: an object used to select a method

       x: an object of class 'rtest'

     ...: further arguments passed to or from other methods; in
          'plot.randtest' to 'hist'

  nclass: a number of intervals for the histogram

   coeff: to fit the magnitude of the graph

     sim: a numeric vector of simulated values

     obs: a numeric vector of an observed value

    call: a call order

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

     'as.rtest' returns a list of class 'rtest'
      'plot.rtest' draws the simulated values histograms and the
     position of the observed value

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

     Daniel Chessel chessel@biomserv.univ-lyon1.fr

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

     'RV.rtest', 'mantel.rtest', 'procuste.rtest', 'randtest'

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

     par(mfrow = c(2,2))
     for (x0 in c(2.4,3.4,5.4,20.4)) {
         l0 <- as.rtest(sim = rnorm(200), obs = x0)
         print(l0)
         plot(l0,main=paste("p.value = ", round(l0$pvalue, dig = 5)))
     }

