I have the following dataex for what I have a question about:
Code:
clear input int(H2PF1 H2PF8 H2PF4 H2PF9 H2PF5 H2PF10 H2PF11) . . . . . . . . . . . . . . . . . . . . . 2 . 3 . 2 . 2 . . . . . . . 2 1 1 1 1 1 1 2 2 2 2 2 2 1 2 . 2 . 2 . 2 3 . 3 . 3 . 3 2 . 2 . 2 . 2 1 . 1 . 1 . 1 2 . 2 . 2 . 2 2 . 2 . 1 . 1 . . . . . . . 1 . 2 . 1 . 1 1 1 3 2 2 2 1 1 1 2 2 1 1 1 1 2 2 2 2 2 2 . . . . . . . . . . . . . . 2 2 2 3 2 2 2 2 . 2 . 2 . 2 2 . 3 . 4 . 2 1 1 1 1 1 1 2 2 . 2 . 2 . 2 . . . . . . . 1 . 1 . 2 . 2 2 . 2 . 1 . 2 1 . 1 . 1 . 1 1 1 1 2 1 2 1 1 2 1 2 1 2 2 3 . 3 . 3 . 3 3 . 3 . 3 . 3 . 1 . 1 . 1 1 1 2 1 2 1 2 1 3 3 3 5 3 4 4 2 2 3 2 3 2 2 1 1 1 2 1 1 1 . . . . . . . . . . . . . . 2 . 1 . 1 . 1 1 1 1 2 1 1 1 1 2 1 2 1 2 2 . . . . . . . 2 1 5 1 2 2 2 . . . . . . . 2 2 2 2 2 2 3 . . . . . . . 2 . 3 . 1 . 1 . . . . . . . . . . . . . . 1 1 2 2 2 2 2 2 2 4 4 4 2 3 2 2 3 2 2 2 2 2 . 3 . 2 . 4 1 1 1 2 1 1 1 . . . . . . . 2 2 2 2 2 2 2 1 1 1 1 1 1 2 . . . . . . . 2 . 2 . 2 . 2 1 1 2 2 2 2 3 1 . 1 . 1 . 1 1 1 2 4 1 1 1 1 1 2 1 1 1 2 1 . 2 . 2 . 2 1 . 2 . 2 . 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 . . . . . . . 3 2 4 2 4 1 1 . . . . . . . 1 1 1 1 1 1 1 1 2 1 2 1 2 4 . . . . . . . . . . . . . . 2 1 1 1 1 1 1 . . . . . . . . . . . . . . 3 1 4 1 4 1 1 2 1 1 1 1 1 1 1 2 2 2 2 2 2 4 3 4 2 4 2 2 2 2 1 1 1 1 1 . . . . . . . . 2 . 2 . 2 3 . . . . . . . . . . . . . . . . . . . . . 1 . 1 . 1 . 2 . . . . . . . 1 2 1 3 1 2 2 1 2 2 2 1 2 1 1 2 1 2 1 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 . . . . . . . . . . . . . . . . . . . . . 2 2 2 2 2 2 2 end label values H2PF1 H2PF1 label def H2PF1 1 "(1) Strongly agree", modify label def H2PF1 2 "(2) Agree", modify label def H2PF1 3 "(3) Neither agree nor disagree", modify label def H2PF1 4 "(4) Disagree", modify label values H2PF8 H2PF8 label def H2PF8 1 "(1) Strongly agree", modify label def H2PF8 2 "(2) Agree", modify label def H2PF8 3 "(3) Neither agree nor disagree", modify label values H2PF4 H2PF4 label def H2PF4 1 "(1) Strongly agree", modify label def H2PF4 2 "(2) Agree", modify label def H2PF4 3 "(3) Neither agree nor disagree", modify label def H2PF4 4 "(4) Disagree", modify label def H2PF4 5 "(5) Strongly disagree", modify label values H2PF9 H2PF9 label def H2PF9 1 "(1) Strongly agree", modify label def H2PF9 2 "(2) Agree", modify label def H2PF9 3 "(3) Neither agree nor disagree", modify label def H2PF9 4 "(4) Disagree", modify label def H2PF9 5 "(5) Strongly disagree", modify label values H2PF5 H2PF5 label def H2PF5 1 "(1) Strongly agree", modify label def H2PF5 2 "(2) Agree", modify label def H2PF5 3 "(3) Neither agree nor disagree", modify label def H2PF5 4 "(4) Disagree", modify label values H2PF10 H2PF10 label def H2PF10 1 "(1) Strongly agree", modify label def H2PF10 2 "(2) Agree", modify label def H2PF10 4 "(4) Disagree", modify label values H2PF11 H2PF11 label def H2PF11 1 "(1) Strongly agree", modify label def H2PF11 2 "(2) Agree", modify label def H2PF11 3 "(3) Neither agree nor disagree", modify label def H2PF11 4 "(4) Disagree", modify
I want to keep the labels but change the values so that 1 would be low 'disagree' and 4 would be high 'agree'. How would I accomplish this?
I am not sure whether this makes a difference or not but I have the following command:
Code:
alpha H2PF1 H2PF8 H2PF4 H2PF9 H2PF5 H2PF10 H2PF11, reverse(H2PF1 H2PF8 H2PF4 H2PF9 H2PF5 H2PF10 H2PF11) std gen(parentalattachment1)
0 Response to Change values without changing labels
Post a Comment