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 open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.