getb: Calculate the b-measure

View source: R/getb.R

getbR Documentation

Calculate the b-measure

Description

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

Usage

getb(Xb, Xc, oneI = FALSE, oneM = FALSE)

Arguments

Xb

Three-way (I \times J(J-1)/2 \times M) array with I assessors, J(J-1)/2 product comparisons, M CATA attributes, where values are counts of types b and c from the function barray.

Xc

Array of same dimension as Xb, where values are counts of types b and c 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

Author(s)

J.C. Castura

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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.foodqual.2022.104564")}.

Examples

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

cata documentation built on Sept. 12, 2025, 1:08 a.m.

Related to getb in cata...