I am trying to derive the quality of life score based on the participants’ responses. I used the below-mentioned if-then statement to give the score. There were two observations where this if/then statement was not correctly working. For example, even though physical1= 1, the physical1_qol was shown as 25 instead of 100. In both observations, there were missing values for physical_qol even though physical values were not missing. if physical1=1 then physical1_qol=100;if physical1=2 then physical1_qol=75;if physical1=3 then physical1_qol=50;if physical1=4 then physical1_qol=25;if physical1=5 then physical1_qol=0; if physical2=1 then physical2_qol=100;if physical2=2 then physical2_qol=75;if physical2=3 then physical2_qol=50;if physical2=4 then physical2_qol=25;if physical2=5 then physical2_qol=0; if physical3=1 then physical3_qol=100;if physical3=2 then physical3_qol=75;if physical3=3 then physical3_qol=50;if physical3=4 then physical3_qol=25;if physical3=5 then physical3_qol=0; if physical4=1 then physical4_qol=100;if physical4=2 then physical4_qol=75;if physical4=3 then physical4_qol=50;if physical4=4 then physical4_qol=25;if physical4=5 then physical4_qol=0; if physical5=1 then physical5_qol=100;if physical5=2 then physical5_qol=75;if physical5=3 then physical5_qol=50;if physical5=4 then physical1_qol=25;if physical5=5 then physical5_qol=0; if physical6=1 then physical6_qol=100;if physical6=2 then physical6_qol=75;if physical6=3 then physical6_qol=50;if physical6=4 then physical6_qol=25;if physical6=5 then physical6_qol=0; if physical7=1 then physical7_qol=100;if physical7=2 then physical7_qol=75;if physical7=3 then physical7_qol=50;if physical7=4 then physical7_qol=25;if physical7=5 then physical7_qol=0; if physical8=1 then physical8_qol=100;if physical8=2 then physical8_qol=75;if physical8=3 then physical8_qol=50;if physical8=4 then physical8_qol=25;if physical8=5 then physical8_qol=0; Thank you
... View more