Learn R Programming

SensoMineR (version 1.27)

search.desc: Search for discriminating descriptors

Description

This function is designed to select the significant descriptors in a data frame

Usage

search.desc(matrice, col.j, col.p, firstvar, 
      lastvar = ncol(matrice), level = 0.5)

Value

Returns a data frame with all the qualitative variables and only discriminating variables

Arguments

matrice

a data frame made up of at least two qualitative variables (product, panelist) and a set of quantitative variables (sensory descriptors)

col.j

the position of the categorical variable which make the variability, panelist for sensory studies. The value of col.j can also be NULL if no categorical variables make the variability.

col.p

the position of the categorical variable of interest, product for sensory studies

firstvar

the position of the first endogenous variable

lastvar

the position of the last endogenous variable (by default the last column of donnee

level

the threshold (P-value) below which variables are considered as discriminating for the following analysis of variance model: descriptor=col.p+col.j

Author

Francois Husson

Examples

Run this code
data(chocolates)
## In this example, all the descriptos are discriminated
interesting.desc <- search.desc(sensochoc, col.j = 1, col.p = 4, 
    firstvar = 5, level = 0.5)

Run the code above in your browser using DataLab