1.A raw data file is listed below:
----|----10---|----20---|----30
John McCloskey 35 71
June Rosesette 10 43
TinekeJones 9 37
The following SAS program is submitted using the raw data file as input:
data work.homework;
infile 'file-specification';
input name $ age height;
if age LE 10;
run;
How many observations will the WORK.HOMEWORK data set contain?
A. 0
B. 2
C. 3
D. No data set is created as the program fails to execute due to errors.
根据偶对二楼解释的理解:
根据IF语句,要满足age less equal 10;如果不符合条件的话,就被认为是missing value.在name,age, height三个值中,除了age,其他两个仍然存在.
1.John McCloskey missing 71
2.June Rosesette 10 43
3.TinekeJones 9 37
最后的结果还是3个obs.
PS:不肯定一定对,还望高手指正.


雷达卡
京公网安备 11010802022788号







