Hello,
I have the following code:
proc means data=sasuser.sasfile010916 mean median std min max;
where firmdefi=1 and firmdefi=2;
var equity TAssets Sales;
class firmdefi;
run;
The log indicate NOTE: No observations were selected from data set SASUSER.SASFILE010916.
There is data that relate to firmdefi 1 or 2 and I do not understand what is my mistake?
Thanks for any help!!!
Logically, it is not possible for FIRMDEFI to equal 1 and 2 at the same time. Instead of using AND, your WHERE statement could switch to OR. Alternatively:
where firmdefi in (1, 2);
Logically, it is not possible for FIRMDEFI to equal 1 and 2 at the same time. Instead of using AND, your WHERE statement could switch to OR. Alternatively:
where firmdefi in (1, 2);
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.
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.