I have to columns. One is the Center and the other is diastolic blood pressure reading. How to i compute the average diastolic blood pressure for each center while retaining all other variables in the data set.
Can you please post a sample of what you HAVE and what you WANT?
Really, you could show us some example of your data, and an example of the results you want, so we can truly understand what you are asking for. Without that, we are merely guessing, and possibly wasting evereyone's time.
Here's my guess:
Use PROC SUMMARY with center in the CLASS statement, then merge the results into the original data set.
If that's the answer, great.
If not, DO NOT REPLY that this doesn't work without showing us an exaample of your data and the desired result.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.