BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
peiy5920
Calcite | Level 5

Hi all,

 

I have a data set and a variable named PCR in it. I want to normalize this variable, but I am not sure how to change it. Can someone give me some suggestions. Thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions
ed_sas_member
Meteorite | Level 14

Hi @peiy5920 

 

Here are some suggestions:

- to standardize the data (center around the mean and divide by standard deviation), you can use PROC STANDARD for example.

- to normalize the data, you can also try transformations: log transformation (in a data step, you define a new variable as NEWVAR = log(NEW)), square root transformation  (in a data step, you define a new variable as NEWVAR = sqrt(NEW)), ... You can also try Box and Cox transformation using PROC TRANSREG with the option BOXCOX in the MODEL statement.

View solution in original post

4 REPLIES 4
ed_sas_member
Meteorite | Level 14

Hi @peiy5920 

 

Here are some suggestions:

- to standardize the data (center around the mean and divide by standard deviation), you can use PROC STANDARD for example.

- to normalize the data, you can also try transformations: log transformation (in a data step, you define a new variable as NEWVAR = log(NEW)), square root transformation  (in a data step, you define a new variable as NEWVAR = sqrt(NEW)), ... You can also try Box and Cox transformation using PROC TRANSREG with the option BOXCOX in the MODEL statement.

peiy5920
Calcite | Level 5
Thank you so much!
ed_sas_member
Meteorite | Level 14
You’re welcome 😊

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

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
  • 4 replies
  • 1173 views
  • 0 likes
  • 3 in conversation