I have data that is not normally distributed and I want to perform a BoxCox transformation on the data set for "traitx". How can I write a code which can help me transform the data. I've included a sample of the data set below. "Breed" and "traitx" being are independent and dependent variable respectively.
Breed | Traitx |
a | 6.4375 |
a | 2.55814 |
a | 2.42424 |
a | 4.14 |
a | 1.46552 |
a | 1.99057 |
a | 1.91743 |
a | 1.24031 |
a | 2.44643 |
a | 2.42424 |
a | 2.17949 |
a | 1.72 |
b | 2.42708 |
b | 3.375 |
b | 1.80952 |
b | 2.02941 |
b | 3.75 |
b | 3 |
b | 4.73684 |
b | 5.09302 |
b | 2.81579 |
c | 2.26087 |
c | 3.11475 |
c | 1.63158 |
c | 2.07273 |
c | 2.73469 |
c | 1.33582 |
c | 1.45614 |
c | 1.2037 |
d | 2.01266 |
d | 1.75 |
d | 2.12644 |
d | 3.8 |
d | 3.20313 |
This one worked for me. perfectly explained
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.