bcluster.n {cata} | R Documentation |
b-cluster analysis by non-hierarchical iterative ascent clustering strategy
Description
Non-hierarchical b-cluster analysis transfers assessors iteratively to reach a local maximum in sensory differentiation retained.
Usage
bcluster.n(X, G, M = NULL, measure = "b", max.iter = 500, runs = 1,
X.input = "data", tol = exp(-32), seed = 2021)
Arguments
X |
CATA data organized in a three-way array (assessors, products, attributes) |
G |
number of clusters (required for non-hierarchical algorithm) |
M |
initial cluster memberships |
measure |
|
max.iter |
maximum number of iteration allowed (default |
runs |
number of runs (defaults to |
X.input |
either |
tol |
algorithm stops if variance over 5 iterations is less than
|
seed |
for reproducibility (default is |
Value
An object of class bclust.n
(or a list of such objects
if runs>1
), where each such object has the following components:
cluster
: vector of the final cluster membershipstotalB
: value of the total sensory differentiation in data setretainedB
: value of sensory differentiation retained in b-cluster analysis solutionprogression
: vector of sensory differentiation retained in each iterationiter
: number of iterations completedfinished
: boolean indicates whether the algorithm converged beforemax.iter
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)
# b-cluster analysis on the first 8 consumers and the first 5 attributes
(b <- bcluster.n(bread$cata[1:8, , 1:5], G=2))