BookmarkSubscribeRSS Feed
Nieves
Quartz | Level 8
 

In a panel data defined by id x and time t, I have found the maximum value of variable y (max y) and maximum value of variable z (max z) within each group of id x.

 

How to Compare the maximum value of y and maximum value of z, create a varialbe that equals the maximum (max y,max z) and identify the time when the maximum value of y and z appears respectively? 

 

I'm using SAS 9.4

1 REPLY 1

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 894 views
  • 0 likes
  • 2 in conversation