由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sas proc transpose can do this?
相关主题
R 问题【包子】SAS 多个图在同一页
R问题:给定一些日期,找出其中Gamma distribution for power analysis,请大拿指点
urgent help using sas or R for data managementproc corr with very large data 计算结果有错
求教如何根据每一行创建一个满足条件的宏变量?非常有挑战性的问题!说一下今天的电面
再问一个sas输出的问题 (export)气死了,这个TA是不是跟我有愁?
SAS/IML读已有数据问题[合集] 不是统计专业的, 问个excel的问题
null model fit statistics (in proc logistic and etc)overall mean in sas for several variables
SAS helphow to trasform data.
相关话题的讨论汇总
话题: list2话题: list1话题: transpose话题: proc话题: both
进入Statistics版参与讨论
1 (共1页)
l*****k
发帖数: 587
1
I can do it in R, but not sure if sas can also handle it.
I have 26 lists, now I want to generate their pairwise overlaps
I did the overlap in R, now the output is
list1 list2 both_up both_down
a c x x
a b x x
a c x x
.
.
.
b a x x
b b x x
.
.
.
list1 is actually list2, the whole paiwise comparison has 26*26 row
can I transform it to matrix format using proc transpose?
the result should have list1 as row, list2 as column, their element
intersection are their overlaps
transpose does not do it when I go:
proc sort data=mydata out=mydata1; by list1 list2; run;
proc transpose data=mydata1 out=mydata2;
by list1, list2;
id list2;
var both_up;
run;
I want to build the matrix, both_ups on top triangle
both_downs on bottom triangle, can that be done too?
1 (共1页)
进入Statistics版参与讨论
相关主题
how to trasform data.再问一个sas输出的问题 (export)
help for a sas questionSAS/IML读已有数据问题
请教一个proc transpose的问题null model fit statistics (in proc logistic and etc)
请教如何用SAS处理这个RANDOM SAMPLING的问题SAS help
R 问题【包子】SAS 多个图在同一页
R问题:给定一些日期,找出其中Gamma distribution for power analysis,请大拿指点
urgent help using sas or R for data managementproc corr with very large data 计算结果有错
求教如何根据每一行创建一个满足条件的宏变量?非常有挑战性的问题!说一下今天的电面
相关话题的讨论汇总
话题: list2话题: list1话题: transpose话题: proc话题: both