Given the SAS data set work.test;
X Y
5 2
3 1
5 6
The following SAS program is submitted:
data one two three;
set work.test;
if X eq 5 then output one;
if Y lt 5 then output two;
else output three; (原题 output)
run;
问每个data set各有几个观测值,回家运行了一下应该是:
work.one: X Y
5 2
5 6
work.two: X Y
5 2
3 1
work.three: X Y
5 6
所以各有2,2,1个observations
想请教这题的具体原理?else output three 语句只对应 If Y lt 5 then这条语句?谢谢大家!