由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sas interview questions
相关主题
请教一个SAS recode variable的问题吧请教一个proc transpose的问题
怎么在SAS里面搞出个99乘法表出来?〉请教如何用SAS处理这个RANDOM SAMPLING的问题
在SAS里面如何进行数组操作?sas proc transpose
How well is SAS/IML studio integrating with R.?[SAS] data set options (obs=) in output tables
SAS里面怎么设置vector求高人指点一个SAS数据的转换问题
SAS question,thanks!SAS how to change variables' name
overall mean in sas for several variables新手请SAS合并数据集问题
sas一问包子问,SAS里data long to wide format
相关话题的讨论汇总
话题: out3话题: data话题: interview话题: variable话题: questions
进入Statistics版参与讨论
1 (共1页)
c*********n
发帖数: 87
1
phone interview questions:
1. two data sets(one and two) both have one common variable: out3, which
out3 will appear in the regular join result of proc sql?
he told me regular join means whatever join(inner or outer) in sql.
I think this is tricky since if you specify the variable name(like: one.out3
) in select statement, the results would be different.
if you do not specify the variable name , then the result only includes the
first data set.
data one;
input out3 $ a b c;
cards;
a 3 4 5
b 4 8
g**a
发帖数: 2129
2
For question one, I think the answer is the dataset that is the first in the FROM statement.
For the second question, the only way I can think of is using IML. How could
you do it by transpose?
C******t
发帖数: 72
3
data set2 (keep=product month sales);
set set1;
product= product;
array salearray month1-month12;
do i=1 to 12;
month=i;
sales=salearray{i};
output;
end;
run;
Get Backward:
data set3(drop=sales month i);
retain product;
array salearray month1-month12;
do i=1 to 12;
set set2 ;
product=product;
salearray{i}=sales;
end;
output;
run;
S******y
发帖数: 1123
4
#2 (roll up or reverse) is a typical interview question for business/marking
analytics
p*****o
发帖数: 543
5
couldnt we just use the normal transpose procedure?
proc transpose data = a;
by product;
var month1 -- month12;
run;

the FROM statement.
could

【在 g**a 的大作中提到】
: For question one, I think the answer is the dataset that is the first in the FROM statement.
: For the second question, the only way I can think of is using IML. How could
: you do it by transpose?

1 (共1页)
进入Statistics版参与讨论
相关主题
包子问,SAS里data long to wide formatSAS里面怎么设置vector
求助SAS CODE:如何同时对90个variables进行log transformation?SAS question,thanks!
请问关于LOGISTIC REGRESSION FORWARD VS BACKWARDoverall mean in sas for several variables
questions about modeling ?sas一问
请教一个SAS recode variable的问题吧请教一个proc transpose的问题
怎么在SAS里面搞出个99乘法表出来?〉请教如何用SAS处理这个RANDOM SAMPLING的问题
在SAS里面如何进行数组操作?sas proc transpose
How well is SAS/IML studio integrating with R.?[SAS] data set options (obs=) in output tables
相关话题的讨论汇总
话题: out3话题: data话题: interview话题: variable话题: questions