getb {cata}R Documentation

Calculate the b-measure

Description

Function to calculate the b-measure, which quantifies the sensory differentiation retained.

Usage

getb(X.b, X.c, oneI = FALSE, oneM = FALSE)

Arguments

X.b

three-way (I, J(J-1)/2, M) array with I assessors, J(J-1)/2 product comparisons, M CATA attributes, where values are counts of type b from the function barray)

X.c

array of same dimension as X.b, where values are counts of type b from the function barray)

oneI

indicates whether calculation is for one assessor (default: FALSE)

oneM

indicates whether calculation is for one attribute (default: FALSE)

Value

b-measure

References

Castura, J.C., Meyners, M., Varela, P., & Næs, T. (2022). Clustering consumers based on product discrimination in check-all-that-apply (CATA) data. Food Quality and Preference, 104564. doi:10.1016/j.foodqual.2022.104564.

Examples

data(bread)

bread.bc <- barray(bread$cata[1:8,,1:5])
getb(bread.bc[,,1,], bread.bc[,,2,])

[Package cata version 0.1.0.5 Index]