I created an online survey with several likert scale questions. Now I want to transform the 5 point variables into 3 point variables: "agree" "disagree" and "undecided"
First I coded the varible like this:
How can I recode this into a 3-point scale? I tried this:
But I always get the error code "command unab is unrecognized" (r 199) - What am I doing wrong??
Thank you in advance.
First I coded the varible like this:
Code:
cap drop government_behavior gen government_behavior = Q4 lab var government_behavior "Government responds appropriately" lab def government_behavior 1 "strongly agree" 2 "rather agree" 3 "neither agree nor disagree" 4 "rather disagree" 5 "strongly disagree" lab val government_behavior government_behavior tab government_behavior
Code:
recode government_behavior 4/5=(0 "disagree") 1/2=(1 "agree") 3=(2 "undecided"), gen (government_behavior_new)
Thank you in advance.
Comment