chisq.desc             package:EnQuireR             R Documentation

_D_i_s_p_l_a_y _t_h_e _r_e_s_u_l_t_s _o_f _a _c_h_i-_s_q_u_a_r_e _t_e_s_t

_D_e_s_c_r_i_p_t_i_o_n:

     Color the cells of the table containing the results from the
     Chi-square test,  crossing all the selected categorical variables,
     according to a selected threshold.

_U_s_a_g_e:

     chisq.desc(dataset,Y,X,method="proba",print=TRUE,report=FALSE,language="english")

_A_r_g_u_m_e_n_t_s:

 dataset: a dataframe

       Y: first group of variable

       X: second group of variable (to be crossed with the first one)

  method: if "proba" : the colour depends on the p-values given by the
          hypergeometric law. If "mean" : the colour depends on the
          value of the contribution to the chi-square distance 

   print: a logical value. If TRUE, tables of the chi-square distance
          are printed with cells coloured according to the chosen
          threshold

  report: a logical value.  If TRUE, a report is automatically
          generated

language: english or french

_D_e_t_a_i_l_s:

     This function is useful when comparing categorical variables. If
     report=TRUE, a directory named "EnQuireR" is created in your
     working directory (which can be known thanks to the getwd()
     function). This directory contains the final pdf report and also
     the teX file used to produce it.

_A_u_t_h_o_r(_s):

     Jerome Bouche jerome.bouche@yahoo.fr 
      Marine Cadoret marine.cadoret@agrocampus-ouest.fr 
      Gwenaelle Fournier gwenaelle.fournier@gmail.com 
      Olivier Fournier olivier.fournier76@gmail.com 
      Francois Le Poder francois.lepoder@gmail.com

_E_x_a_m_p_l_e_s:

     ## Not run: 
     data(tea)
     chisq.desc(tea,c(1,2),c(3,4))

     chisq.desc(tea,c(1,2),c(3,4),report=TRUE)
     ## End(Not run)

