Before, you had your race variable in the BY statement, not your sex variable. In any case, if you want to obtain one odds ratio estimate for the clinic effect that is adjusted for sex, race, and age, then you need a single model that includes all of those variables; not separate models by sex (or race). The code I showed before provides that. Otherwise, if you have your sex variable in a BY statement, then you'll get two analyses with two estimates of the clinic effect. If you want that, it is better to do it with a single model that includes the clinic*sex interaction, not with a BY statement. With the interaction in the model, you would include an ODDSRATIO statement: oddsratio clinic;
... View more