SAS Procedures

Help using Base SAS procedures
BookmarkSubscribeRSS Feed
Saeed
Calcite | Level 5
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.
1 REPLY 1
ArtC
Rhodochrosite | Level 12
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]

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1049 views
  • 0 likes
  • 2 in conversation