楼主: triggersas
1710 3

[问答] 一道SAS ADV 题 [推广有奖]

  • 0关注
  • 1粉丝

已卖:36份资源

本科生

52%

还不是VIP/贵宾

-

威望
0
论坛币
1904 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
5096 点
帖子
7
精华
0
在线时间
183 小时
注册时间
2013-10-14
最后登录
2019-12-19

楼主
triggersas 发表于 2013-12-8 12:58:09 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
请教各位大侠,下面这题的答案为什么不是D?

The following SAS program is submitted:

data towns;

input City $ pop year;

cards;

ANDOVER 75000 1998

CARY    80000 1998

ANDOVER 14000 1977

CARY    71000 1986

;

%macro a(location);

data a;

set towns;

%if &location=UK %then %do;

where city='ANDOVER';

%end;

%if &location=NC %then %do;

where city='CARY';

%end;

if pop>70000;

run;

%mend;


%a(UK)


Which one of the following represents the resulting output in the SAS data set A?A. 1 observation with the value of CARY for the variable City

B. 2 observations with the value of CARY for the variable City

C. 1 observation with the value of ANDOVER for the variable City

D. 2 observations with the value of ANDOVER for the variable City
Correct answer: C

二维码

扫码加我 拉你入群

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

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

关键词:observations observation represents following represent represents following where 14000

沙发
zw612003 发表于 2013-12-8 13:49:44
是不是少看了一句
if pop>70000;

藤椅
wzzlz117 发表于 2013-12-8 17:42:27
后面还有个if pop>70000

板凳
triggersas 发表于 2013-12-8 21:03:44
Haha, you are right, many thanks!

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-1 19:20