Inspect many runs of b-cluster analysis. Calculate sensory differentiation retained and recurrence rate.
inspect(X, G = 2, bestB = NULL, bestM = NULL, inspect.plot = TRUE)A data frame with unique solutions in rows and the following columns:
B : Sensory differentiation retained
pctB : Percentage of the total sensory differentiation retained
B.prop : Proportion of sensory differentiation retained compared
to best solution
raw.agree : raw agreement with best solution
count : number of runs for which this solution was observed
c.1, c.2, ... : remaining columns gives index of the cluster
to which the consumers (columns) are allocated
three-way array; the I, J, M array has I
assessors, J products, codeM attributes where CATA data have values
0 (not checked) and 1 (checked)
number of clusters (required for non-hierarchical algorithm)
total sensory differentiation retained in the best solution. If
not provided, then bestB is determined from best solution in the runs
provided (in X).
cluster memberships for best solution. If not provided, then
the best solution is determined from the runs provided (in X).
default (TRUE) plots results from the
inspect function
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. tools:::Rd_expr_doi("10.1016/j.foodqual.2022.104564").
data(bread)
res <- bcluster.n(bread$cata[1:10, , 1:8], G = 2, runs = 5)
inspect(res)
Run the code above in your browser using DataLab