Sorry, but I can't follow this.
-
Login or Register
- Log in with
* Example generated by -dataex-. For more info, type help dataex clear input float(id q1 q2 q3 q4 q5) 1 1 2 2 3 3 2 1 2 1 2 1 3 1 2 2 1 3 4 1 3 3 2 2 5 1 1 1 2 2 6 1 1 1 1 2 end * mark correct answers gen byte q1_iscorrect = (q1 == 1) gen byte q2_iscorrect = (q2 == 1) gen byte q3_iscorrect = (q3 == 1) gen byte q4_iscorrect = (q4 == 1) gen byte q5_iscorrect = (q5 == 2) * count correct answers gen byte num_correct = q1_iscorrect + q2_iscorrect + q3_iscorrect + q4_iscorrect + q5_iscorrect
. tab num_correct num_correct | Freq. Percent Cum. ------------+----------------------------------- 1 | 1 16.67 16.67 2 | 3 50.00 66.67 4 | 1 16.67 83.33 5 | 1 16.67 100.00 ------------+----------------------------------- Total | 6 100.00
Comment