I have 50 continuous variables and I want to check normality condition of each variable. Is there any syntax available which suggest me automatically best transformation (whether it is log, exp or sqrt) of each variable in one go.
I would start with Proc univariate as you can request a test for normality as well as get some descriptive statistics and/or plots of distributions that would give a hint which transform might be useful for those that aren't normal, or close enough for your purpose.
Proc univariate data=have normal;
var <list your variable here or use on of the SAS variable list forms>;
run;
would get you started. Histogram or CDFPLOT or other of the plot statements might be helpful.
Hi all,
I want to continue with this question.
In STATA we have qladder to check that, I hope SAS has something similar by now too.
Hao
@haoduonge wrote:
Hi all,
I want to continue with this question.
In STATA we have qladder to check that, I hope SAS has something similar by now too.
Hao
we don't know what qladder does, please explain
Also, what is wrong with doing what @ballardw said above? Seems to be a rather complete answer to the original question.
I meant the code that can be used to exam multiple variables silmultaneously (avoid to run over and over again).
Thanks!
Hao
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.