- Thread starter Frutiloopz
- Start date

... calculate an "adjusted percentage" in SAS when we run a logistic regression adjusting for standard variables...

I'll try to explain better. when you run a GLM in the way

proc GLM; model continuous outcome= categorical IndepVar + confounders ;

you can either compute means of your DV over your IV strata with the MEANS option, or calculate in the same way standardized means with the option LSMEANS adjusting for other variables included in you model.

Now I have a dichotomous outcome and I would like to do the same, to have adjusted percentages over my independent variable adjusted for other variables. Proc freq will be fine for actual percentages, but I don't know if its possible to calculate "adjusted percentages". So that's my question.

Any ideas ?

Thank you !

However, what you're asking for could easily be done with nested loops in a macro. You'd just divide each of the independent variables up into strata and calculate percentages. This might be good practice to get better at macros. Think you're up for it?