Re: [Rd] Patch to add Beta binomial distribution. Mentor needed!

From: Joan Maspons <j.maspons_at_creaf.uab.cat>
Date: Mon, 11 Jun 2012 20:10:45 +0200

Hello,

I'm trying to implement the Beta binomial distribution as a R package. I studied R-ext manual but still there are some problems. The code in C seems to work except for the rbetabinom function which is not very random (it always returns the same values for the same parameters). I have tried to use GetRNGstate(); and PutRNGstate(); but it give a SEG FAULT when I call GetRNGstate. You can try the code like this:

cd /path/to/src
cmake ./CMakeLists.txt
make
./r-package

I can build and install the package but when I call the functions from R they always return NULL except for rbetabinom which remains hanged indefinitely.

Any advise?

-- 
Joan Maspons
CREAF (Centre de Recerca EcolÚgica i Aplicacions Forestals)
Universitat AutÚnoma de Barcelona, 08193 Bellaterra (Barcelona), Catalonia
Tel +34 93 581 2915 † † † † † †j.maspons_at_creaf.uab.cat
http://www.creaf.uab.cat

______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Received on Mon 11 Jun 2012 - 18:54:20 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Tue 12 Jun 2012 - 11:10:30 GMT.

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

list of date sections of archive