Prev: Proc pdlreg & class effects
Next: update table
From: J M on 3 Nov 2009 14:47 I have four variables: Location (x,y,z), q1, q2, and q3 (where each line is a different individual). q1,q2, and q3 are categorical variables (the respondent can answer: Disagree, Agree, or Strongly Agree). I would like to create a data set with the following variables: Location, Question (numeric variable ranging from 1-10), Disagree, Agree, Strongly_Agree where the data set would look like this: Location Question Agree Disagree Strongly_Agree x 1 1 0 0 x 1 0 1 0 x 2 0 0 1 x 2 1 0 0 x 3 1 0 0 x 3 0 1 0 where each line is a different individual (no individual identifier is needed). If a person agreed with a certain question they get a 1 for Agree and a zero for Disagree and Strong_Agree. Thank you.
|
Pages: 1 Prev: Proc pdlreg & class effects Next: update table |