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-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 save with the early bird rate—just $795!

Register now

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