由买买提看人间百态

topics

全部话题 - 话题: joblevel
(共0页)
P*****i
发帖数: 63
1
来自主题: Statistics版 - SAS base 50题第29题求解惑
29.A frequency report of the variable Jobcode in the Work.Actors data set is
listed below.
Jobcode Frequency Percent Cumulative
Frequency Cumulative
Percent
Actor I 2 33.33 2 33.33
Actor II 2 33.33 4 66.67
Actor III 2 33.33 6 100.00
Frequency Missing = 1
The following SAS program is submitted:
data work.joblevels;
set work.actors;
if jobcode in ('Actor I', 'Actor II') then
joblevel='Beginner';
if jobcode='Actor III' then
joblevel='Advanced';
else joblevel='Unknown';
run;
Which of the following r... 阅读全帖
n*****5
发帖数: 61
2
来自主题: Statistics版 - sas base 再问问
A frequency report of the variable Jobcode in the Work.Actors data set is
listed
below.
Jobcode Frequency Percent Cumulative
Frequency Cumulative
Percent
Actor I 2 33.33 2 33.33
Actor II 2 33.33 4 66.67
Actor III 2 33.33 6 100.00
Frequency Missing = 1
The following SAS program is submitted:
data work.joblevels;
set work.actors;
if jobcode in ('Actor I', 'Actor II') then
joblevel='Beginner';
if jobcode='Actor III' then
joblevel='Advanced';
else joblevel='Unknown';
run;
Which of the following repr... 阅读全帖
s*********e
发帖数: 944
3
来自主题: Statistics版 - 请教sas123题中第59题。
data staff;
jobcategory='fa';
joblevel='1';
jobcategory=jobcategory||joblevel;
run;
proc print;
run;
Obs jobcategory joblevel
1 fa 1
请教一下,||是什么作用呢?
谢谢!
t*****w
发帖数: 254
4
来自主题: Statistics版 - sas base 再问问
else joblevel='Unknown';
will change the other into unknown;
if "if jobcode='Actor III' then joblevel='Advanced';" is changed into
"else if jobcode='Actor III' then joblevel='Advanced';",
the correct answer is b.
z*********o
发帖数: 541
5
来自主题: Statistics版 - 有关连接符的一道题
59. The following SAS program is submitted:
data work.staff;
JobCategory = 'FA';
JobLevel = '1';
JobCategory = JobCategory || JobLevel;
run;
Which one of the following is the value of the variable JOBCATEGORY in the
output data set?
A00-211
- 19 - http://www.ePlanetLabs.com
A. FA
B. FA1
C. FA 1
D. ' ' (missing character value)
Answer: A
答案为何是A不是B呢?
s******r
发帖数: 1524
6
来自主题: Statistics版 - 有关连接符的一道题
I think JobCategory = 'FA' created JobCategory as $2. 'FA1' is 3 in length
so 1 got cut.
try following code,
data work.staff;
length JobCategory $10;
JobCategory = 'FA';
JobLevel = '1';
JobCategory = compress(JobCategory || JobLevel);
run;
a********e
发帖数: 16
7
来自主题: Statistics版 - 请教一个123题的题目
Submit the following code
data staff;
JobCategory='FA';
JobLevel='1';
jobCategory=JobCategory || JobLevel;
run;
问output中JOBCATEGORY的value是什么
答案是FA
我在sas中试了试确实也是
可是我不明白为什么不是 ‘FA 1’ 呢?
谢谢
l******h
发帖数: 855
8
来自主题: Statistics版 - 能问一个A00-201里的59题吗?
The following SAS program is submitted:
data work.staff;
JobCategory = 'FA';
JobLevel = '1';
jobCategory = JobCategory||JobLevel;
run;
which one of the following is the value of the variable JOBCATEGORY in the
output data set?
A FA
B FA1
C FA 1
D ''(missing character value)
我用sas试了一下, 产生的是B:FA1, 但答案是A, 能不能请教一下这是为什么?
d******m
发帖数: 2333
9
来自主题: Statistics版 - 请教sas123题中第59题。
请教过某位牛人以后,终于知道答案了。
因为character variable会keep一开始的attribute.
jobcategory的length一开始是2,所以不够显示fa1.
data staff;
length jobcategory $ 3;
jobcategory='fa';
joblevel='1';
jobcategory=trim(jobcategory)||joblevel;
run;
这样就是fa1了
o*******w
发帖数: 2310
10
来自主题: Statistics版 - 这sas BASE 考试很坑爹..
很多都是故意弄陷阱,治马虎人.
很象国内的某些人出的,估计是华人出的.
当然,很有必要.
例子: The following SAS program is submitted:
data employees;
infile 'file-specification';
input @1 name $10.
@15 date date9
@25 department $;
run;
How many numeric variables are created?
a. 0
b. 1
c. 2
d. 3
data work.staff;
JobCategory = 'FA';
JobLevel = '1';
JobCategory = JobCategory || JobLevel;
run;
Which one of the following is the value of the variable JOBCATEGORY in the output data set?
A. FA
B. FA1
C. FA 1
D. ' ' (missing... 阅读全帖
g****w
发帖数: 8
11
来自主题: Statistics版 - SAS base 50题第29题求解惑
Just ignore the 1st if statement since the joblevel in the 1st if statement
will be replaced by the joblevel in 2nd if statement. 'Actor I', 'Actor II'
will be marked as 'Unknown' from the 2nd if statement.
s*********e
发帖数: 944
12
来自主题: Statistics版 - 请教sas123题中第59题。
那为什么
jobcategory=jobcategory||joblevel
改变不了原来的jobcategory的值呢?
我觉得jobcategory应该是fa1才对啊。
谢谢!
(共0页)