全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2708 4
2014-12-09
我想请问call streaminit(123)什么意思。。。。???希望回答的详细一点,查资料没查到,多谢了!!!
二维码

扫码加我 拉你入群

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

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

全部回复
2014-12-9 23:39:31
see here:

http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001466799.htm

If you want to create reproducible streams of random numbers, then specify STREAMINIT before any calls to the RAND random number function. If you call the RAND function before you specify a seed with STREAMINIT (or if you specify a nonpositive seed value in the STREAMINIT function), then the RAND function uses a call to the system clock to seed itself. Each DS2 program honors one STREAMINIT seed. The prevailing seed value is the one that is specified prior to the first RAND function call. For more information, see Seed Values in SAS Functions and CALL Routines: Reference.

If you do not have this satement, then everytime you run this code you will get different dataset

二维码

扫码加我 拉你入群

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

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

2014-12-9 23:42:53
http://support.sas.com/documentation/cdl/en/ds2ref/67313/HTML/default/viewer.htm#n02tlu8v5cs6efn12f5t9g5of408.htm
hope it works
二维码

扫码加我 拉你入群

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

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

2014-12-10 10:15:36
tianbu 发表于 2014-12-9 23:39
see here:

http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a00146 ...
多谢
二维码

扫码加我 拉你入群

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

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

2014-12-10 11:27:07
tianbu 发表于 2014-12-9 23:39
see here:

http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a00146 ...
没太明白!您能说的简单一些吗?多谢了
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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