search.desc: Search for discriminating descriptors

Description Usage Arguments Value Author(s) Examples

View source: R/search.desc.R

Description

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

Usage

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

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

Value

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

Author(s)

Francois Husson

Examples

1
2
3
4
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)

SensoMineR documentation built on Dec. 13, 2017, 9:04 a.m.