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 😊

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 601 views
  • 0 likes
  • 3 in conversation