Learn R Programming

conjoint (version 1.35)

caSegmentation: Function caSegmentation rates respondents on clusters

Description

Function caSegmentation rates respondents on 3 or n clusters using k-means method. Function takes n = 3 (3 clusters) when there are only two attributes used - y (matrix of preferences) and x (matrix of profiles). Otherwise function caSegmentation rates renspondents on n clusters.

Usage

caSegmentation(y, x, c)

Arguments

y
matrix of preferences
x
matrix of profiles
c
number of clusters (optional), default value: c=3

References

Bak A. (2009), Analiza Conjoint [Conjoint Analysis], [In:] Walesiak M., Gatnar E. (Eds.), Statystyczna analiza danych z wykorzystaniem programu R [Statistical Data Analysis using R], Wydawnictwo Naukowe PWN, Warszawa. Green P.E., Srinivasan V. (1978), Conjoint Analysis in Consumer Research: Issues and Outlook, "Journal of Consumer Research", September, 5, 103-123. SPSS 6.1 Categories (1994), SPSS Inc., Chicago.

Examples

Run this code
#Example 1
library(conjoint)
data(herbata)
segments=caSegmentation(hpref,hprof)
print(segments)

#Example 2
library(conjoint)
data(herbata)
segments=caSegmentation(hpref,hprof, 4)
print(segments)

Run the code above in your browser using DataLab