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-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 lock in 2025 pricing—just $495!

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
  • 1778 views
  • 0 likes
  • 3 in conversation