Re: [R] A function for random test based on longest run (UNCLASSIFIED)

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat, 29 Dec 2007 17:03:10 +0000 (GMT)

On Thu, 27 Dec 2007, Dirk Eddelbuettel wrote:

>
> On 27 December 2007 at 12:08, bogdan romocea wrote:
> | > require(tseries)
> | > ?runs.test
> | Also, take a look at dieharder, it implements a large number of
> | randomness tests:
> | http://www.phy.duke.edu/~rgb/General/dieharder.php
>
> Also note that CRAN has an RDieHarder package that provides access to
> DieHarder tests from R. RDieHarder is currently happier on Linux than on
> Windows. If anybody wants to contribute build instructions for Windows ...

It's not easy on Linux! There is a src/Makefile that ignores most of the info from how R was built, including CC, CFLAGS andlibrary pats such as /usr/local/lib64. And that's if you can get dieharder built: it gave me lots of errors before succeeding. I managed to build from the SRPM, but that installed with the include files without read permissions.

But I've succeeded on Windows, and RDieHarder is now in the CRANextras collection (and so can be installed from the menus etc). I'll send Dirk separately notes on what I had to do to make it work.

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 29 Dec 2007 - 17:06:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 31 Dec 2007 - 09:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.