全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1367 6
2011-07-01
请问下面这段代码,为什么这样写的,什么意思,谢谢:
data forreport;
set age(in = in1)
gender(in = in2)
race(in = in3);
group = sum(in1 * 1, in2 * 2, in3 * 3);
run;
二维码

扫码加我 拉你入群

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

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

全部回复
2011-7-1 18:55:40
age数据集 group=1 gender数据集group=2 race数据集group=3
二维码

扫码加我 拉你入群

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

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

2011-7-1 19:14:49
看看 看看!
二维码

扫码加我 拉你入群

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

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

2011-7-1 19:50:17
上面的说的对 group 对应为1,2,3
二维码

扫码加我 拉你入群

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

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

2011-7-1 21:39:41
详细点嘛,为什么 (in=in1)这样表示呢? 是什么用法,谢
2# njmch
二维码

扫码加我 拉你入群

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

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

2011-7-3 08:41:04
IN=variable

names the new variable whose value indicates whether that input data set
contributed data to the current observation. Within the DATA step, the value of the
variable is 1 if the data set contributed to the current observation, and 0 otherwise.
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群