全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
5563 2
2010-01-01
【求助】ranuni(5555) < .5 这里边的参数具体是什么意思?

麻烦知道的好心人告诉我以下,这个随机数生成函数 中   5555    0.5   具体是什么意思。

或者share一份随机数生成函数的资料给到偶,不胜感激,谢谢。
二维码

扫码加我 拉你入群

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

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

全部回复
2010-1-2 00:39:17
1# lizziezeng

ranuni(5555) < .5
Create a random number with uniform (0, 1) distribution using seed number of 555. and then compare the random number to a constant of .5. Of note, the seed number which makes the replication of those random numbers possible is not essential here. That is, the results should be very similar to ranuni(123) < .5.
For example,
复制代码
is to create a sample about gender in which the ratio of male and female is approximately half to half.
二维码

扫码加我 拉你入群

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

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

2013-10-3 13:58:36
jingju11 发表于 2010-1-2 00:39
1# lizziezeng
Of note, the seed number which makes the replication of those random numbers possible is not essential here. That is, the results should be very similar to ranuni(123) < .5.这一段不理解。例子也看不明白,详求解
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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