BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have this table:

ID AGE SEX Year Retired Wave
1 50 M Not retired 1
2 60 F 2001 1
3 70 M Not Retired 1
5 45 F 2001 1
1 51 M 2002 2
2 55 F Not Retired 3
6 65 F 2004 4
...
...

I would like to build a graph like this :

Proportion of female who retired by 2002= Retire by 2002 / ( Total just Retired + Non Retired in 2002 ) [ only wave 1 person involved ]
|
|
|
|
|____________
Age

Proportion of female who retired by 2002= Retire by 2002 / ( Total just Retired + Non Retired in 2002 ) [Only wave 2 Persons involved]
|
|
|
|______
Age

Secondly, how could I group the proportion by group age instead of just one age. 55-59 instead of 55, 56, 57 ...


Thank you.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 0 replies
  • 880 views
  • 0 likes
  • 1 in conversation