Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to choose the highest score in multiple responses for variable construction?

    Hello everyone,

    I have a number of multiple choice questions in wide format. The answer choices were later transformed into points. The idea is to add up the points on all questions to get a final score. In case a respondent chooses multiple answers for the same question, I am to select the response with the highest points.

    Say var11 va12 var13 var14 and var15 is my first multiple choice question and var21, var22, var23, var24, var25 is my second multiple choice question. How do I add the points such that only the response (in this case the variable) with the highest point is selected for the final score?

    Thanks.
    Last edited by danishussalam; 31 Jan 2017, 03:42.

  • #2
    danishussalam:
    what you're asking for may have something to do with -egen- with -rowmax()- function.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Yeah it works with egen and rowmax! thanks!

      Comment

      Working...
      X