Help using Base SAS procedures

Stricting the analysis to specific gender and not including the other?

Reply
N/A
Posts: 1

Stricting the analysis to specific gender and not including the other?

I want to strict my analysis to males and do not include females.
For example if I have 0=males and 1= females how can I restrict my analysis to males only. For example to compare heamoglobin mean levels across treatments (1= insulin, 2= diet) in men only.
Valued Guide
Posts: 634

Re: Stricting the analysis to specific gender and not including the other?

Look up the WHERE statement/clause/option.

WHERE data set option.
[pre]
proc whatever data=mydat(where=(gender=0));
[/pre]

WHERE statement.
[pre]
proc whatever data=mydat;
where gender=0;
[/pre]
Ask a Question
Discussion stats
  • 1 reply
  • 82 views
  • 0 likes
  • 2 in conversation