search for: murdoch

Displaying 20 results from an estimated 6611 matches for "murdoch".

2018 Sep 19
2
Bias in R's random integers?
...could give bad results. Suppose I sample rows from a large dataset, maybe for bootstrapping. Suppose the rows are non-randomly ordered, e.g. odd rows are males, even rows are females. Oops! Very non-representative sample, bootstrap p values are garbage. David On Wed, 19 Sep 2018 at 21:20, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 19/09/2018 3:52 PM, Philip B. Stark wrote: > > Hi Duncan-- > > > > > > That is a mathematically true statement, but I suspect it is not very > relevant. Pseudo-random number generators always have test functions > wh...
2018 Sep 19
0
Bias in R's random integers?
...u need a different pattern; add or subtract an element or two and the pattern needed to see a problem changes drastically.) But if you're sampling from a dataset of that exact size, then you should worry about this bug. Don't use sample(). Use the algorithm that Carl described. Duncan Murdoch > > David > > On Wed, 19 Sep 2018 at 21:20, Duncan Murdoch <murdoch.duncan at gmail.com > <mailto:murdoch.duncan at gmail.com>> wrote: > > On 19/09/2018 3:52 PM, Philip B. Stark wrote: > > Hi Duncan-- > > > > > >...
2010 Feb 25
6
Building R packages in Windows 7
Dear useRs, I'm having trouble building R packages in Windows 7 regarding HTML help Workshop. Pointing PATH to c:\Program Files\HTML help Workshop does work in Windows (e.g. Vista) and does not in Windows 7. Some tips?? Kind regards, -- Dr Eric B Ferreira Exact Sciences Department Federal University of Alfenas Brazil [[alternative HTML version deleted]]
2018 Sep 19
4
Bias in R's random integers?
...s or not, I have no idea. Regarding backwards compatibility: as a user, I'd rather the default sample() do the best possible thing, and take an extra step to use something like sample(..., legacy=TRUE) if I want to reproduce old results. Regards, Philip On Wed, Sep 19, 2018 at 9:50 AM Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 19/09/2018 12:23 PM, Philip B. Stark wrote: > > No, the 2nd call only happens when m > 2**31. Here's the code: > > Yes, you're right. Sorry! > > So the ratio really does come close to 2. However, the difference in &gt...
2018 Sep 19
2
Bias in R's random integers?
...you want this adopted in core R, you'll need to convince an R-core member to pursue this fix. In the meantime, a good, well-tested implementation in a user-contributed package (presumably written in C for speed) would be enormously useful. Volunteers ... ? On 2018-09-19 04:19 PM, Duncan Murdoch wrote: > On 19/09/2018 3:52 PM, Philip B. Stark wrote: >> Hi Duncan-- >> >> Nice simulation! >> >> The absolute difference in probabilities is small, but the maximum >> relative difference grows from something negligible to almost 2 as m >> approaches 2*...
2018 Sep 19
0
Bias in R's random integers?
...a documentation warning about the accuracy of sampling probabilities would also be a sufficient fix here, and would be quite a bit less trouble than changing the default sample(). But as I said in my original post, a contribution of a function without this bug would be a nice addition. Duncan Murdoch > > Regards, > Philip > > On Wed, Sep 19, 2018 at 9:50 AM Duncan Murdoch <murdoch.duncan at gmail.com > <mailto:murdoch.duncan at gmail.com>> wrote: > > On 19/09/2018 12:23 PM, Philip B. Stark wrote: > > No, the 2nd call only happens when m &g...
2018 Sep 19
0
Bias in R's random integers?
...;ll need to > convince an R-core member to pursue this fix. > > In the meantime, a good, well-tested implementation in a > user-contributed package (presumably written in C for speed) would be > enormously useful. Volunteers ... ? > > > > On 2018-09-19 04:19 PM, Duncan Murdoch wrote: > > On 19/09/2018 3:52 PM, Philip B. Stark wrote: > >> Hi Duncan-- > >> > >> Nice simulation! > >> > >> The absolute difference in probabilities is small, but the maximum > >> relative difference grows from something negligible to a...
2018 Sep 19
2
Bias in R's random integers?
...double cut = INT_MAX; switch(RNG_kind) { case KNUTH_TAOCP: case USER_UNIF: case KNUTH_TAOCP2: cut = 33554431.0; /* 2^25 - 1 */ break; default: break; } double u = dn > cut ? ru() : unif_rand(); return floor(dn * u); } On Wed, Sep 19, 2018 at 9:20 AM Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 19/09/2018 12:09 PM, Philip B. Stark wrote: > > The 53 bits only encode at most 2^{32} possible values, because the > > source of the float is the output of a 32-bit PRNG (the obsolete version > > of MT). 53 bits isn't the re...
2018 Apr 26
2
Package 'data.table' in version R-3.5.0 not successfully being installed
You are right. I do take backups. But, this time I was too sure that nothing will go wrong. But, this was over-confidence. I need to take more care in future. Thanks anyway. With regards, Dr. A.K. Singh On Thu 26 Apr, 2018, 11:49 PM Duncan Murdoch, <murdoch.duncan at gmail.com> wrote: > On 26/04/2018 1:54 PM, Akhilesh Singh wrote: > > My thanks to Dr. John Fox and Dr. Duncan Murdoch. But, I have upgraded > > all my R-3.4.3 libraries to R-3.5.0, and I have not backed-up copies of > > old version. So, I would give a...
2018 Apr 26
2
Package 'data.table' in version R-3.5.0 not successfully being installed
My thanks to Dr. John Fox and Dr. Duncan Murdoch. But, I have upgraded all my R-3.4.3 libraries to R-3.5.0, and I have not backed-up copies of old version. So, I would give a try each to the solutions suggested by John Fox and Dengan Murdoch. With regards, Dr. A.K. Singh On Thu 26 Apr, 2018, 9:44 PM Duncan Murdoch, <murdoch.duncan at gmail....
2012 Mar 16
4
How to start R in maximized size???
Dear all, when I start R, I want that the console window should be in the Maximized size automatically. Can somebody help me how to achieve that? Thanks and regards,
2024 Feb 09
1
Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
Duncan, do you think it's worth to comment this in R-devel list? Iago ________________________________ De: CALUM POLWART <polc1410 at gmail.com> Enviat el: divendres, 9 de febrer de 2024 18:28 Per a: Duncan Murdoch <murdoch.duncan at gmail.com> A/c: Iago Gin? V?zquez <iago.gine at sjd.es>; r-help at r-project.org <r-help at r-project.org> Tema: Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line I don't use term, but I've jus...
2015 May 24
6
NEWS.md support on CRAN
...rence implementations, one in javascript, the other in C: https://github.com/jgm/cmark Regards, baptiste * There was some initial controversy with the original author of markdown, but in the long term it's probably one of the more reliable sources to follow. On 24 May 2015 at 12:00, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 23/05/2015 9:25 AM, G?bor Cs?rdi wrote: > > On Sat, May 23, 2015 at 8:14 AM, Duncan Murdoch > > <murdoch.duncan at gmail.com <mailto:murdoch.duncan at gmail.com>> wrote: > > [...] > > > > I think the h...
2024 Feb 12
1
Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
...eport. More implementation details in the bugzilla report: https://bugs.r-project.org/show_bug.cgi?id=18666 Best Tomas > Iago > > ________________________________ > De: CALUM POLWART <polc1410 at gmail.com> > Enviat el: divendres, 9 de febrer de 2024 18:28 > Per a: Duncan Murdoch <murdoch.duncan at gmail.com> > A/c: Iago Gin? V?zquez <iago.gine at sjd.es>; r-help at r-project.org <r-help at r-project.org> > Tema: Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line > > I don't use ter...
2018 Apr 26
0
Package 'data.table' in version R-3.5.0 not successfully being installed
On 26/04/2018 1:54 PM, Akhilesh Singh wrote: > My thanks to Dr. John Fox and Dr. Duncan Murdoch. But, I have upgraded > all my R-3.4.3 libraries to R-3.5.0, and I have not backed-up copies of > old version. So, I would give a try each to the solutions suggested by > John Fox and Dengan Murdoch. Here is some unsolicited advice: I would strongly recommend that you make it a highe...
2017 Jul 05
3
[New Patch] Fix disk corruption when writing
...Linux). Despite the check in Rconn_printf, the write.csv happily writes to /dev/full and does not report an error. When I added a printf("%d\n", res); to the Rconn_printf() definition, I see only positive values returned by the vfprintf call. Cheers, j. On 4 July 2017 at 21:37, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 04/07/2017 11:50 AM, Jean-S?bastien Bevilacqua wrote: > >> Hello, >> You can find here a patch to fix disk corruption. >> When your disk is full, the write function exit without error but the file >> is truncated. >&g...
2013 Oct 19
1
XML package not working
I know I cannot be the only one who is not able to install the XML package from CRAN (zip or tar file) Many packages depend on this XML package. Can someone help me either access the source for a good binary? I have received no assistance from the author/developer of the package. Steven Steven D. Randolph Associate Consultant Enterprise Capabilities - Business Intelligence & Analytics Eli
2024 Feb 09
1
Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
I don't use term, but I've just tested it and this is reproducable. Is it a bug? Not sure. If you hit c after getting the message it will cancel the q() request. On Fri, 9 Feb 2024, 17:21 Duncan Murdoch, <murdoch.duncan at gmail.com> wrote: > That looks to me like a bug, but I don't use Windows any more, so I > won't offer to try to fix it for you. In fact I don't think Rterm has > many users at all: most Windows users probably use RStudio or one of > the other gra...
2018 Apr 26
0
Package 'data.table' in version R-3.5.0 not successfully being installed
...com> wrote: > You are right. I do take backups. But, this time I was too sure that > nothing will go wrong. But, this was over-confidence. I need to take more > care in future. Thanks anyway. > > With regards, > > Dr. A.K. Singh > > On Thu 26 Apr, 2018, 11:49 PM Duncan Murdoch, <murdoch.duncan at gmail.com> > wrote: > >> On 26/04/2018 1:54 PM, Akhilesh Singh wrote: >> > My thanks to Dr. John Fox and Dr. Duncan Murdoch. But, I have upgraded >> > all my R-3.4.3 libraries to R-3.5.0, and I have not backed-up copies of >> > old ve...
2014 Jul 08
0
Re: [R-es] Consulta paquetización con versión R 3.1.0
...hank you for your persistent work that took you a step further to doing it all wrong in R. And thanks to Duncan for adding invaluable help to this list. Br. Frede Sendt fra Samsung mobil -------- Oprindelig meddelelse -------- Fra: Eva Prieto Castro Dato:08/07/2014 18.39 (GMT+01:00) Til: Duncan Murdoch Cc: r-help Emne: Re: [R] [R-es] Consulta paquetización con versión R 3.1.0 Solved!! I removed this line: .ChrL.env$bStarted <- FALSE And run ok!! I supose the method let the fact of initializing data structure, but not the fact of assign. The basic example runs ok. Now I have to test all t...