楼主: mazhengjy
2953 3

问几道SAS base 123的题 [推广有奖]

  • 0关注
  • 1粉丝

已卖:1411份资源

硕士生

31%

还不是VIP/贵宾

-

威望
0
论坛币
3817 个
通用积分
5.3202
学术水平
2 点
热心指数
3 点
信用等级
2 点
经验
2403 点
帖子
98
精华
0
在线时间
201 小时
注册时间
2008-10-13
最后登录
2018-9-5

楼主
mazhengjy 发表于 2009-8-27 05:28:24 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Question 15.
data numrecords;
infile 'file-specification';
input @1 patient $15. relative $ 16-26@;
if relative='children' then
input @ 54 diagnosis $15. @;
else if relative= 'parents' then
input @28 doctor $15. clinic $ 44-53 @54 diagnosis $15. @;
input age;
run;

How many raw data records are read during each iteration of the DATA step during execution?
A.1   B.2  C.3  D.4

Question 39.
A raw data file is listed below:
John McCloskey 35 71
June Rosesette 10 43
TinekeJones 9 37
The following SAS program is submitted using the raw date file as input:
data work.homework;
infile 'file-specification';
input name $ age height;
if age LE 10;
run;

How many observtions will the WORK.HOMEWORK data set contain?

答案选的是3个,是不是因为当读到第一个和第二个age的时候是missing value,而missing value也是LE 10的,所以是3个observation?


Question 72.
The following SAS program is submitted:
data work,test;
First='Ipswich, England';
City=substr(First,1,7);
City_Country=City!!'; '!!'England';
run;

Which one of the following is the value of the variable CITY_COUNTRY in the output data set?

B. Ipswich, England
D. Ipswich , England
(答案选D,但我不明白为什么用了substr()函数以后给City的长度为8了,不是应该是和First的长度是一样的么?)
二维码

扫码加我 拉你入群

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

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

关键词:SAS base Base observation following Diagnosis SAS Base

沙发
heshaohua666 发表于 2009-8-27 08:13:22
great idea

藤椅
一个大树 发表于 2009-8-27 10:36:59
Question 39: 正如你想的那样,missing value <10;
Question 72:我想在答案‘D. Ipswich , England’里面的空格不是只指一个空格,而是表示要在city后补上空格以便维持和first一样的长度吧!

板凳
losttemple 发表于 2009-8-27 10:57:19
变量city后面就有空格

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 14:37