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.
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.
Pkease provide example data innzsable form (data step with datalines), and what you expect to get out of it.
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.
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.
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.