Hello
I am trying to check t test while I have a variables dl dm dn (profit vs assets in 3 variations) while my class is az. The az is dummy variable with 0 or 1 (1 is a family and 0 is not a family).
This is my project:
proc ttest data=sasuser.sasfile120416;
class az;
var dl dm dn;
run;
And the answer I got in log is
ERROR: The CLASS variable has more than two levels.
I checked and the az is only 1 and 0, so what it could be?
Thanks for any help!
Any missing values? Is a format applied to variable.
Post output from following:
proc freq data=sasuser.sasfile120416;
Format az;
Table az/missing
Run;
Any missing values? Is a format applied to variable.
Post output from following:
proc freq data=sasuser.sasfile120416;
Format az;
Table az/missing
Run;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.