Use the Log Function.
Your data does not have to be normally distributed to run a linear regression.
This is a good article on the topic: On the assumptions (and misconceptions) of linear regression .
Hi @PeterClemmensen,
I think your link points to "Need to log-transform a distribution? There's a SAS function for that!" (which is also an interesting article), but of course you mean "On the assumptions (and misconceptions) of linear regression."
Oh, yes of course. Corrected, thank you!
*Log Transfrom single variable;
data work.prac;
set project1.hiv;
LogA = log(A);
LogB = log(B);
run;
Try this. (using log function)
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.