third most frequent

  1. P

    How to identify 3 most frequent responses and turn them into new variables.

    Hello! I have a data set of 1000 individuals (rows) and (for this example) 18 likert-scale 5-item item responses in the columns. So the data for one person might look like this: SubjectA1 1 1 2 1 2 3 5 3 4 1 1 1... etc. I want to generate 6 new variables. 3 for each of the most common 3...