楼主: zjjzsl
2180 3

请教一下R中有没有相当于randomize的函数啊 [推广有奖]

  • 0关注
  • 0粉丝

已卖:127份资源

本科生

22%

还不是VIP/贵宾

-

威望
0
论坛币
137 个
通用积分
0.4350
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
980 点
帖子
57
精华
0
在线时间
84 小时
注册时间
2005-8-20
最后登录
2022-10-23

楼主
zjjzsl 发表于 2010-1-18 21:21:44 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
请教一下 r中有没有相当于randomize 用于产生不同种子的函数啊 谢谢啦
二维码

扫码加我 拉你入群

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

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

关键词:randomize random rand NDO RAN 请教 函数 randomize

回帖推荐

jennyli1346 发表于2楼  查看完整内容

What do you mean by 种子? If you want to generate data from normal distribution, try rnorm(100) # generate 100 observations from standard normal distribution. Similarly you may get data from t-distribution: rt(100,DF) # DF is degree of freedom. To generate random number, try package random by Dirk Eddelbuettel and others given below: Random Number Generators: Basic functionality : R ...

本帖被以下文库推荐

沙发
jennyli1346 发表于 2010-1-18 22:49:29
What do you mean by 种子?

If you want to generate data from normal distribution, try
rnorm(100) # generate 100 observations from standard normal distribution.

Similarly you may get data from t-distribution: rt(100,DF) # DF is degree of freedom.

To generate random number, try package random by Dirk Eddelbuettel and others given below:
Random Number Generators:

Basic functionality : R provides several random number generators (RNGs). The random seed can be provided via set.seed and the kind of RNG can be specified using RNGkind. The default RNG is the Mersenne-Twister algorithm. Other generators include Wichmann-Hill, Marsaglia-Multicarry, Super-Duper, Knuth-TAOCP, Knuth-TAOCP-2002, as well as user-supplied RNGs. For normal random numbers, the following algorithms are available: Kinderman-Ramage, Ahrens-Dieter, Box-Muller, Inversion (default). In addition to the tools above, setRNG provides an easy way to set, retain information about the setting, and reset the RNG.
Pseudo-randomness : RDieHarder offers several dozen new RNGs from the GNU GSL. randtoolbox provides more recent RNGs such as SF Mersenne-Twister and WELL, which are generators of Mersenne Twister type, but with improved quality parameters. rngwell19937 provides one of the WELL generators with 53 bit resolution of the output and allows seeding by a vector of integers of arbitrary length. randaes provides the deterministic part of the Fortuna cryptographic pseudorandom number generator (AES). SuppDists implements two RNGs of G. Marsaglia.
Support for several independent streams: rsprng implements Scalable Parallel RNGs library. rstream focuses on multiple independent streams of random numbers from different sources (in an object oriented approach).
For non-uniform generation, the Runuran package interfaces to the UNU.RAN library for universal non-uniform RNGs.
Misc.: rv package provides a class to easily manipulate and summarize simulations in R.
Quasi-randomness : The randtoolbox provides the following quasi random sequences: the Sobol sequence, the Halton (hence Van Der Corput) sequence and the Torus sequence (also known as Kronecker sequence). lhs package implements the latin hypercube sampling, an hybrid quasi/pseudo random method.
True randomness : The random package provides several functions that access the true random number service at random.org .
RNG tests : RDieHarder offers numerous tests of RNGs based on a reimplementation and extension of Marsaglia's DieHarder battery. randtoolbox provides basic RNG tests.
Parallel computing : For parallel computing with random numbers, see the HighPerformanceComputing task view.
已有 1 人评分论坛币 热心指数 收起 理由
crystal8832 + 10 + 1 热心帮助其他会员

总评分: 论坛币 + 10  热心指数 + 1   查看全部评分

藤椅
zjjzsl 发表于 2010-1-19 00:05:18
是的 我是说种子 谢谢楼上

板凳
abelus 发表于 2010-1-19 16:40:44
?set.seed
and so on

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

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