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

[R] about ECDF display in ggplot2

2018-07-06 Thread Bogdan Tanasa
Dear all, I would appreciate having your advice/suggestions/comments on the following : 1 -- starting from a vector that contains LENGTHS (numerically, the values are from 1 to 10 000) 2 -- shall I display the ECDF by using the R code and some "limits" : BREAKS = c(0, 10, 20, 30, 40, 50, 60,

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

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

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

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

[R] Do there need to be the same number of y-values for each x-value when using tapply?

2018-07-06 Thread Jenny Liu
Hi everyone, I'm trying to fit a set of data to a non-linear distribution (namely, rates of insect development at different temperatures), and I'm trying to do this using the selfStart and GetInitial functions. (I'd of course be open to alternative suggestions!). However, I keep running into this

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

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

Re: [R] progress of a function...

2018-07-06 Thread Marc Girondot via R-help
Take a look at the pbmcapply package. It does what you need. Marc Le 06/07/2018 à 11:37, akshay kulkarni a écrit : dear members, I want to use svMisc package in R to check how my function is progressing. It has the following syntax: f <- function(x){ for (i in

[R] code to run a simulation

2018-07-06 Thread Adam Z. Jabir
Hi Guys, I am doing some imputation for my dataset. I am looking for code to do simulation before choosing the right package (mice, Knn). Does anyone have some code that can do the following: 1. introduce some missing rate into the data 2. Apply the two imputaion methods 3. Compute