I am not certain I understand what kind of adjustment you require but I have met the situation where the effect of covariables had to be subtracted from the dependent variable, which can be done in the following way : /* Define reference age and BMI */ %let refAge=30; %let refBMI=20; /* Add one observation with reference age and BMI to the dataset */ data refTest; if _n_=1 then do; age = &refAge; bmi = &refBMI; output; end; set test; output; run; /* Get the predicted values (including for the reference age and BMI) and individual residuals */ proc reg data=refTest; model depvar = age bmi / clb; output out=outTest r=resid p=pred; run; /* Compute adjusted dependent variable as predicted dependent variable at reference age and BMI plus individual departure from regression mean (the residual) */ data testAdj; set outTest; if _n_=1 then refDepvar = pred; else do; stdDepvar = refDepvar + resid; output; end; drop refDepvar; run; (Not tested) PG
... View more