Hi,
I'm trying to analyze data by looking at changes in blood pressure (BP) over three measurements. I would like to add a column to each row that shows the difference between the highest and lowest of the three measurements.
For example: BP1- 120, BP2 - 160, BP3 - 140 -----> Range = (160 - 120) = 40
I am new to SAS and am at a loss of how to approach this. I have looked everywhere for a solution.
Any help would be great.
Thanks.
range = range(of BPZSY1 - BPZSY3);
You will find it useful to bookmark documentation.sas.com:
range = range(of BPZSY1 - BPZSY3);
You will find it useful to bookmark documentation.sas.com:
This is just what I was looking for.
Thank you for your help!
@pubhealthguy - glad this answer helped. Please update this post as answered.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.
Ready to level-up your skills? Choose your own adventure.