由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - SAS base question
相关主题
请教一个sas123问题do loop 的一道题
已解决菜鸟请教SAS初级编程题目。
请教, base 123 , if then else如何用SAS对ID(OBS)求SUM或者用SAS消去ID(没有ID)。
SAS题求教SAS base 87% pass today
问个sas base的题目关于SAS里TRUNCOVER一问
求助关于SAS base123SAS basic question
[合集] Ask two base test questions?SAS求助,out of memory
[合集] SAS里如何实现LOCF(LAST OBS CARRIED FORWARD)?SAS -proc transpose 急问!
相关话题的讨论汇总
话题: high话题: low话题: medium话题: unknown话题: level
进入Statistics版参与讨论
1 (共1页)
s******o
发帖数: 283
1
111. A SAS PRINT procedure output of the WORK.LEVELS data set is listed
below:
Obs name level
1 Frank 1
2 Joan 2
3 Sui 2
4 Jose 3
5 Burt 4
6 Kelly .
7 Juan 1
The following SAS program is submitted:
data work.expertise;
set work.levels;
if level = . then
expertise = 'Unknown';
else if level = 1 then
expertise = 'Low';
else if level = 2 or 3 then
expertise = 'Medium';
else
expertise = 'High';
run;
Which of the following values does the variable EXPERTISE contain?
A. Low, Medium, and High only
B. Low, Medium, and Unknown only
C. Low, Medium, High, and Unknown only
D. Low, Medium, High, Unknown, and ' ' (missing character value)
Why the answer is B? Why "High" can not be the value, there is one level=4??
?
t**c
发帖数: 539
2
b/z in "else if level = 2 or 3 then", 3 will always be true.
It should be "else if level = 2 or level = 3 then".
s******o
发帖数: 283
3
Got it,Thanks for your help. Sorry I sent this content to your email by
mistake just now, just ignore it. Thanks very much!

【在 t**c 的大作中提到】
: b/z in "else if level = 2 or 3 then", 3 will always be true.
: It should be "else if level = 2 or level = 3 then".

1 (共1页)
进入Statistics版参与讨论
相关主题
SAS -proc transpose 急问!问个sas base的题目
弱问SAS:如何找出两个data sets中missing的obs求助关于SAS base123
如何用SAS Macro来计算这个公式?[合集] Ask two base test questions?
[SAS] call execute gives me error[合集] SAS里如何实现LOCF(LAST OBS CARRIED FORWARD)?
请教一个sas123问题do loop 的一道题
已解决菜鸟请教SAS初级编程题目。
请教, base 123 , if then else如何用SAS对ID(OBS)求SUM或者用SAS消去ID(没有ID)。
SAS题求教SAS base 87% pass today
相关话题的讨论汇总
话题: high话题: low话题: medium话题: unknown话题: level