interact             package:SensoMineR             R Documentation

_E_s_t_i_m_a_t_i_o_n _o_f _i_n_t_e_r_a_c_t_i_o_n _c_o_e_f_f_i_c_i_e_n_t_s

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

     Computes automatically the interaction coefficients between two
     quantitative variables 'col.p' and 'col.j' for the following
     model: '"~col.p+col.j+col.p:col.j"'.

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

     interact(donnee, col.p, col.j, firstvar, lastvar = ncol(donnee))

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

  donnee: a data frame made up of at least two qualitative variables 
          (_product_, _panelist_) and a set of quantitative variables
          (sensory descriptors)

   col.p: the position of the _product_ effect for instance

   col.j: the position of the _panelist_ effect for instance

firstvar: the position of the first endogenous variable

 lastvar: the position of the last endogenous variable (by default the
          last column of 'donnee')

_D_e_t_a_i_l_s:

     In most cases 'col.p' represents the _product_ effect, 'col.j'
     represents the _panelist_ effect, and the variables of interest
     are the sensory descriptors. The model considered is the following
     one: '"~Product+Panelist+Product:Panelist"'.
      Data must be complete (but not necessarily balanced).

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

     Returns an array of dimension (_p,j,k_), where _p_ is the number
     of products, _j_ the number of panelists and _k_ the number of
     sensory descriptors. The entries of this array are the interaction
     coefficients between a panelist and a product for a given
     descriptor. 
      For each sensory descriptor, returns a graph where each
     (panelist,product) interaction coefficient is displayed, a graph
     where the contribution to the (panelist,product) interaction
     coefficient by product is displayed, a graph where the
     contribution to the (panelist,product) interaction coefficient by
     panelist is displayed.

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

     Franois Husson

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

     'aov'

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

     ## Not run: 
     data(chocolates)
     resinteract=interact(sensochoc, col.p = 4, col.j = 1, firstvar = 5)
     ## End(Not run)

