The alc values and fractions are related to the other variables using some math formula (like af1+age-10*sex), right?
You can compute new variables for both:
Code:
COMPUTE af1=<FORMULA INCLUDING diag1>
COMPUTE af2=<FORMULA INCLUDING diag2>
......
EXECUTE.
COMPUTE fraction1=<FORMULA INCLUDING af1, age AND sex>
COMPUTE fraction2=<FORMULA INCLUDING af2, age AND sex>
......
EXECUTE.
For the maxaf variable, use COMPUTE again, but with tha MAX function:
Code:
COMPUTE maxaf=MAX(af1 TO af14).
EXECUTE.
It would be good if you could post your commands for this, maybe you're thinking in a faster way and maybe someone can point any common mistakes.