这是代码:
data test_1;
input (nmarital nkids nsex)(1.)@@;
if nkids>0 and nmarital=1 then marital='single_with_kids';
if nkids>0 and nmarital=2 then marital='married_with_kids';
if nkids=0 and nmarital=1 then marital='single';
if nkids=0 and nmarital=2 then marital='married';
if n(nmarital--nsex) eq 0 then do;
input;
return;
end;
cards;
102
211
232
202
222
221
202
212
201
122
201
202
122
;
proc print;
run;
请问:if n(nmarital--nsex) eq 0 then do; input; return; end;代表什么呢?书里说是“检查观测行的结束”。这里的n是什么意思?eq 0又是什么意思呢?这段语句有什么特殊意义呢?请大虾回答下,谢谢!