I have data from questionnaire from school. First question is study program (only 2 programs) and next 35 questions are various questions (influence of friends etc.)
Possible answers for 35 questions are "definitely yes", "mostly yes", "mostly no" and "definitely no". Some of data contains missing values.
I want to do hierarchical clustering in R (hclust). First of all I merged answers "definitely yes" with "mostly yes" and "mostly no" and "definitely no". So now I have "yes", "no" and missing values.
For "yes" I assigned value 1, for "no" -1 and for missing values 0.
My questions are:
Is my categorization of data good?
What function of distance is suitable for this type of data? hclust in R usually use Euclidean and Manhattan distance, but I think these distances are not suitable for my type of data (because of missing values).
Thanks
0
will result in them being similar to other missing values and even toyes
andno
. One possibility to approach this is to define a similarity function which will assign a low similarity (per dimension) to every comparison where a missing value is involved. $\endgroup$0
for unknown will really screw you. Because it is 'more' similar than if they had answered the exact opposite! The most central object will be the one that answered not a single question. $\endgroup$