Re: [R] Generate random Bernoulli draws

2018-07-06 Thread Marino David
Hi Chuck and all, Thanks for your response. It is really helpful for me. David 2018-07-07 7:30 GMT+08:00 Berry, Charles : > Sorry about the last incomplete post. Accidentally hit send. > > Meant to say that I was hoping that a correct, but obscure response from > me would motivate David to ste

Re: [R] Generate random Bernoulli draws

2018-07-06 Thread Berry, Charles
Sorry about the last incomplete post. Accidentally hit send. Meant to say that I was hoping that a correct, but obscure response from me would motivate David to step back and think about his problem long enough to see that it has an easy solution. Sorry if that was out-of-line. Chuck > On Ju

Re: [R] Generate random Bernoulli draws

2018-07-06 Thread Berry, Charles
> On Jul 6, 2018, at 3:31 PM, Duncan Murdoch wrote: > > On 06/07/2018 1:18 PM, Berry, Charles wrote: >> A liitle math goes along way. See below. >>> On Jul 5, 2018, at 10:35 PM, Marino David wrote: >>> >>> Dear Bert, >>> >>> I know it is a simple question. But for me, at current, I fail to

Re: [R] Generate random Bernoulli draws

2018-07-06 Thread Duncan Murdoch
On 06/07/2018 1:18 PM, Berry, Charles wrote: A liitle math goes along way. See below. On Jul 5, 2018, at 10:35 PM, Marino David wrote: Dear Bert, I know it is a simple question. But for me, at current, I fail to implement it. So, I ask for help here. It is not homework. Best, David 2018-

Re: [R] Generate random Bernoulli draws

2018-07-06 Thread Göran Broström
On 2018-07-06 19:18, Berry, Charles wrote: A liitle math goes along way. See below. On Jul 5, 2018, at 10:35 PM, Marino David wrote: Dear Bert, I know it is a simple question. But for me, at current, I fail to implement it. So, I ask for help here. It is not homework. Best, David 2018

Re: [R] Generate random Bernoulli draws

2018-07-06 Thread Berry, Charles
A liitle math goes along way. See below. > On Jul 5, 2018, at 10:35 PM, Marino David wrote: > > Dear Bert, > > I know it is a simple question. But for me, at current, I fail to implement > it. So, I ask for help here. > > It is not homework. > > Best, > > David > > 2018-07-06 13:32 GMT+08:0

Re: [R] Generate random Bernoulli draws

2018-07-06 Thread Marino David
Dear Ben, Thanks a lot for your reply. Best, David 2018-07-06 19:33 GMT+08:00 Ben Tupper : > Hi, > > I haven't any idea about what you ask, but I do know that Rseek.org is a > gold mine! Check out... > > https://rseek.org/?q=Bernoulli+random+variable > > Cheers, > Ben > > On Jul 6, 2018, at 1

Re: [R] Generate random Bernoulli draws

2018-07-06 Thread Ben Tupper
Hi, I haven't any idea about what you ask, but I do know that Rseek.org is a gold mine! Check out... https://rseek.org/?q=Bernoulli+random+variable Cheers, Ben > On Jul 6, 2018, at 1:35 AM, Marino David wrote: > > Dear Be

Re: [R] Generate random Bernoulli draws

2018-07-05 Thread Marino David
Dear Bert, I know it is a simple question. But for me, at current, I fail to implement it. So, I ask for help here. It is not homework. Best, David 2018-07-06 13:32 GMT+08:00 Bert Gunter : > Is this homework? > > (There is an informal no-homework policy on this list). > > Cheers, > Bert > > >

Re: [R] Generate random Bernoulli draws

2018-07-05 Thread Bert Gunter
Is this homework? (There is an informal no-homework policy on this list). Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Jul 5, 2018 at 10

[R] Generate random Bernoulli draws

2018-07-05 Thread Marino David
Dear All, I would like to generate N random Bernoulli draws given a probability function F(x)=1-exp(-2.5*x) in which x follows uniform distribution, say x~U(0,2). Can some one leave me some code lines for implementing this? Thanks in advance. David [[alternative HTML version deleted]]