*-PedsQL SCORING By: Joanne Wu If you found a bug or would like to comment on this program, please email qfw@usc.edu -*; /*reverse score, transform the 0-4 scale items to 0-100 as follows: 0=100, 1=75, 2=50, 3=25, 4=0. The higher scores indicate better HRQOL.*/ /*if the data set has missing values, please re-test the program to make sure it work correctly*/ /*change original variables name to scale name*/ if 24<=ageinmoth<=48 then do; /*physical functionning*/ pf1=Q42Aa; pf2=Q42Ab; pf3=Q42Ac; pf4=Q42Ad; pf5=Q42Ae; pf6=Q42Af; pf7=Q42Ag; pf8=Q42Ah; /*emotional functionning*/ ef1=Q43Aa; ef2=Q43Ab; ef3=Q43Ac; ef4=Q43Ad; ef5=Q43Ae; /*social functionning*/ socf1=Q44Aa; socf2=Q44Ab; socf3=Q44Ac; socf4=Q44Ad; socf5=Q44Ae; /*school functionning*/ schf1=Q45Aa; schf2=Q45Ab; schf3=Q45Ac; end; else if 480 Almost Never 2-->1 Sometimes 3-->2 Often 4-->3 Almot Always 5-->4 -*; array old pf1-pf8 ef1-ef5 socf1-socf5 schf1-schf5; do over old; if old=1 then old=0; else if old=2 then old=1; else if old=3 then old=2; else if old=4 then old=3; else if old=5 then old=4; end; **************************; *physical functioning *; **************************; nmisspf=0; array pf[8] pf1-pf8; do i=1 to 8; if pf[i]=0 then pf[i]=100; else if pf[i]=1 then pf[i]=75; else if pf[i]=2 then pf[i]=50; else if pf[i]=3 then pf[i]=25; else if pf[i]=4 then pf[i]=0; if pf[i]=. then nmisspf=nmisspf+1; end; drop i; **************************; *emotional functioning *; **************************; nmissef=0; array ef[5] ef1-ef5; do i=1 to 5; if ef[i]=0 then ef[i]=100; else if ef[i]=1 then ef[i]=75; else if ef[i]=2 then ef[i]=50; else if ef[i]=3 then ef[i]=25; else if ef[i]=4 then ef[i]=0; if ef[i]=. then nmissef=nmissef+1; end; drop i; **************************; *social functioning *; **************************; nmisssoc=0; array socf[5] socf1-socf5; do i=1 to 5; if socf[i]=0 then socf[i]=100; else if socf[i]=1 then socf[i]=75; else if socf[i]=2 then socf[i]=50; else if socf[i]=3 then socf[i]=25; else if socf[i]=4 then socf[i]=0; if socf[i]=. then nmisssoc=nmisssoc+1; end; drop i; **************************; *school functioning *; **************************; /*for age 5-18*/ if 48