BookmarkSubscribeRSS Feed
Stacy
Calcite | Level 5

IMG_1534(1).jpgI need help in converting the ESC and seisurecount column into weekly rates.

The ESC column is a baseline 8 week seizure count while the Seizurecountcolum is a 2 week seizure count.

I have to convert both the 8 week and 2 week columns into weekly rates.

I havent written a code for this because I dont know how to start. Any help would be highly appreciated

1 REPLY 1
Tom
Super User Tom
Super User

Don't write code until you know what you want to write.

How can you convert a rate for 8 weeks or 2 weeks into a rate for 1 week?

You can't.

You could possibly make an estimate.

weekly_rate = rate / number_of_weeks;

Is that what you want to calculate?

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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