全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
4395 4
2015-09-12
123题的41:
The contents of the raw data file SIZE are listed below:
--------10-------20-------30
72 95
The following SAS program is submitted:
data test;
infile 'size';
input @1 height 2. @4 weight 2;
run;
Which one of the following is the value of the variable WEIGHT in the output data set?
A. 2
B. 72
C. 95
D. . (missing numeric value)

50题的41:
A raw data file is listed below.
1---+------10---+----20---+---
01/05/1989      Frank      11
12/25/1987      June       13
01/05/1991      Sally        9
The following SAS program is submitted using the raw data file as input:
data work.family;
    infile 'file-specification';
    input @1 data_of_birth mmddyy10.
            @15 first_name $5.
            @25 age 3;
run;
proc print data=work.family noobs;
run;
Which one of the following is the result?
a. The program executes, but the age values are missing in the output.
b. The program executes, but the date values are missing in the output.
c. The program fails to execute because the age informat is coded incorrectly.
d. The program fails to execute because the date informat is coded incorrectly.

看答案,123题的第112题选A。50题的41题选A
我没看出来这两道题的区别在哪里。都是没有. , 但为什么一个的output是常数2,另一个就是missing。我也run了一下,结果确实如此,只是不明白。
请明白人帮着解答一下。谢谢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-9-13 05:23:02
input statement里面 变量后面的数字就是对应的column 第一题weight 后面的2 对应第二栏 也就是72中的2

而第二题 age后面的3 对应第三栏是 / 因为age是numeric varible无法识别特殊符号 所以是missing
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-9-13 05:32:30
sas那个石家庄人 发表于 2015-9-13 05:23
input statement里面 变量后面的数字就是对应的column 第一题weight 后面的2 对应第二栏 也就是72中的2

...
这个很有意思啊
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-9-14 00:44:20
sas那个石家庄人 发表于 2015-9-13 05:23
input statement里面 变量后面的数字就是对应的column 第一题weight 后面的2 对应第二栏 也就是72中的2

...
太谢谢了!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-12-15 11:12:18
所以在按列输入下@符号没有用了是吗
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群