Dear all,
I have posted a similar topic but information I provided was not sufficient to get the answer I wanted (which is my fault).
I want to return mean of QOL (quality of life) for someone with dual symptoms. For example, If someone has symptomA and symptomB;that is, symtptomA=1 and symptomB=1, I want to get the mean of QOL for the observations all having symptomA and symptomB. Likewise, I need to return all the possible combinations of 7C2 of symptoms and their mean, showing what symptoms they have (because I need to check what kinds of symptoms generate lower QOL).
so the result will be like
symptomA & symptomB mean QOL: xx
...
symptomF& symptomG mean QOL: xx
afterwards, I want to get mean QOL of 7C3 as well.
Any help will be appreciated. Thank you!
BW
Kim
I have posted a similar topic but information I provided was not sufficient to get the answer I wanted (which is my fault).
Code:
clear input symptomA symptomB symptomC symptomD symptomE symptomF symptomG QOL 0 0 0 0 0 1 0 62 0 0 0 0 0 0 1 93 0 0 0 0 0 0 1 87 0 0 1 0 0 0 1 82 0 0 0 0 0 0 1 88 0 0 0 0 0 0 0 99 0 0 0 1 1 0 0 64 0 0 0 0 0 0 1 78 0 0 0 0 1 1 0 69 0 0 0 0 0 0 1 77 0 0 0 0 0 1 1 93 0 0 0 0 0 0 1 81 0 0 0 0 0 0 1 61 0 0 0 0 0 1 1 100 0 0 0 0 0 0 0 79 0 0 0 0 0 0 1 41 0 0 0 0 0 1 1 80 1 0 0 0 0 1 1 74 0 0 0 0 0 0 1 52 0 0 0 0 0 0 1 89 0 0 0 0 0 0 0 81 0 0 0 0 0 0 0 90 0 0 0 0 0 0 0 95 0 1 0 0 0 1 1 28 0 0 0 0 0 0 0 85 0 0 0 0 0 0 0 96 0 0 0 0 0 0 0 48 0 0 0 0 0 0 1 61 0 0 0 0 0 0 1 96 0 0 0 0 0 0 1 90 0 0 0 0 0 1 1 62 0 0 0 0 0 1 0 72 0 0 0 0 0 0 0 95 0 0 0 0 0 0 1 59 0 0 0 0 1 1 0 79 0 0 0 0 0 1 0 93 0 0 0 0 0 0 1 92 0 0 0 0 0 0 0 54 0 0 0 0 0 0 1 96 0 0 0 0 0 0 0 81 end
so the result will be like
symptomA & symptomB mean QOL: xx
...
symptomF& symptomG mean QOL: xx
afterwards, I want to get mean QOL of 7C3 as well.
Any help will be appreciated. Thank you!
BW
Kim
Comment