Hi,
The following program produces output summarizing the changes in a sum of lesion diameters by comparing each sum to the smallest sum occurring previously. What I'd like to do is modify it so it compares each sum to the baseline value. Any suggestions on the most efficient way to do this?
data SUMCHECK;
set SASUSER.QUERY_FOR_LS_SAS7BDAT_0006;
retain MINLDSUM;
by SUBJID;
if FIRST.SUBJID then do;
MINLDSUM=.;
LDSUMCHG=.;
end;
LDSUMCHG=(LDSUM-MINLDSUM)/MINLDSUM;
MINLDSUM=min(MINLDSUM,LDSUM);
format LDSUMCHG 8.3;
run
Many thanks in advance,
John