This questionnaire is used to assess depression. There are 9 questions, each scored as 0, 1, 2, or 3 (severity). Here are the scoring instructions, I want to know how to write the syntax to compute the groups:

Major depression is suggested if questions #1 or #2, and five or more of questions #1-#9 are scored as 2 or 3.

Other depression is suggested if questions #1 or #2, and two, three, or four of questions #1-#9 are scored as 2 or 3.

Anyone who isn't in the above two groups would be considered to have no/minimal depression.

Thanks in advance,

Mike