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各有幾個觀測值,回家運行了一下應(yīng)該是:
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 語句只對應(yīng) If Y lt 5 then這條語句?謝謝大家!