楼主: 小甲克虫
2691 13

请教高人SAS变成实现下列模型 [推广有奖]

11
jingju11 发表于 2012-11-21 10:26:34
16 Xs give 2**16-1 different combinations, 1 was from c(16,0).Use allcomb() to list all of combinations and compute their sums. then find the minimum value and pinpoint its corresponding combination(s). of note; use format to mirror the value to its name.
sas手册关于allcomb() 讲的比我更清楚。
另外,如果数字的个数超过25个,这个程序应该变得很慢。
jingju

12
小甲克虫 在职认证  发表于 2012-11-21 16:48:14
jingju11 发表于 2012-11-21 10:26
16 Xs give 2**16-1 different combinations, 1 was from c(16,0).Use allcomb() to list all of combinati ...
看的有点眉目了。只是我的SAS帮助文档里版本落后还没有allcomb函数用法。jingju可否把传给小弟一个最新版本的帮助文档或 解释下allcomb函数返回的到底是什么?
比如 x1 x2...x16, 从中抽取3个,那么allcomb返回的是组合比如是x1 x2 x3; x2 x3 x4;...  还是x1+x2+x3;x2+x3+x4,。。。三个元素相加的结果? 如果是返回的是组合,那么每次抽取三个返回三个变量吗??如果返回的是相加结果,那么返回的是一个变量吗?

13
小甲克虫 在职认证  发表于 2012-11-27 09:41:54
jingju11 发表于 2012-11-20 07:12
Do you have any fast algorithm to find the solution? I amnot sure why this was called mathematical m ...
看懂了  谢谢jingju11

14
蓝霜 发表于 2012-11-27 20:06:24
谢谢了,好好学学

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-24 23:38