I have a Likert scale item imported from text in a .csv file. To wit:
I want to run analysis on it as a continuous variable, i.e. correlations etc. If I encode it, then it assigns the value 1 to Agree, 2 to Disagree, etc., when I want it to go from 1 being Disagree to 4 being Agree. So I tried generating a new variable and setting labels:
But when I do that, it loses a lot of data:
There do not appear to be any weird leading spaces or extra characters in my original data. Does anyone have any ideas for troubleshooting the input or redoing the encode language to ensure that the encoded data are assigned the correct values? Thanks in advance!
Code:
Indicate your agreement with the |
following statement: I feel burned out |
at work. | Freq. Percent Cum.
----------------------------------------+-----------------------------------
Agree | 1,524 41.91 41.91
Disagree | 403 11.08 53.00
Somewhat agree | 1,342 36.91 89.91
Somewhat disagree | 367 10.09 100.00
----------------------------------------+-----------------------------------
Total | 3,636 100.00
Code:
gen burn=.
la var burn "Indicate your agreement with the following statement: I feel burned out at work."
replace burn=1 if burnedout=="Disagree"
replace burn=2 if burnedout=="Somewhat disagree"
replace burn=3 if burnedout=="Somewhat agree"
replace burn=4 if fulfilling=="Agree"
la def burn 1 "Disagree" 2 "Somewhat disagree" 3 "Somewhat agree" 4 "Agree"
la val burn burn
Code:
Indicate your | agreement with | the following | statement: I feel | burned out at | work. | Freq. Percent Cum. ------------------+----------------------------------- Disagree | 41 1.73 1.73 Somewhat disagree | 106 4.47 6.20 Somewhat agree | 721 30.42 36.62 Agree | 1,502 63.38 100.00 ------------------+----------------------------------- Total | 2,370 100.00
Comment