## Estimated means

Occasional Contributor
Posts: 15

# Estimated means

I am quiet new to SAS and I apologize in advance if it is a silly question. I am trying to obtain estimated proportions for a categorical variable, but it seems that I can only get confidence interval if a specify a grouping variable. Suppose I have catVAR1 whose proportion is 0.20, I want to adjust the proportion for age and gender. I have to put gender into the CLASS statement and in the LSMEANS statement of the GLM procedure, like this:

PROC GLM;
CLASS gender;
MODEL catVAR1 = gender age;
LSMEANS gender / CL;
RUN;

This way i get the proportions of catVAR1 for males and females. What if I want the overall proportion in the population, only adjusted for age and gender? if I remove gender from the LSMEANS statement, I get the adjusted proportion but not the CI.

Iron.
Posts: 2,115

## Re: Estimated means

You are using the wrong statistical procedure; GLM assumes normal distribution on the residuals. You need to be using PROC LOGISTIC.

Doc Muhlbaier
Duke
Occasional Contributor
Posts: 15

## Re: Estimated means

http://www2.sas.com/proceedings/sugi31/140-31.pdf

Example 6 page 5, they use SURVEYREG to obtain adjusted proportion.
Also, does the SURVEYLOGISTIC procedure have a ESTIMATE statement?

Best regards. Message was edited by: Iron_grief