[Rd] Buggy Kinderman-Ramage (PR#2846)

Shengqiao Li shli at stat.wvu.edu
Fri Mar 14 23:33:19 CET 2008


I tested  "RNGkind" and  got the follwing output.
The firt command set the normal generator to the Buggy one without
warning.

I'm expecting the warning message will always be given whenever you set to 
the Buggy one.


> RNGkind(normal.kind="Buggy")
> RNGkind()
[1] "Mersenne-Twister"       "Buggy Kinderman-Ramage"
> RNGkind(normal.kind="Buggy Kinderman-Ramage")
Warning message:
In RNGkind(normal.kind = "Buggy Kinderman-Ramage") :
   Buggy version of Kinderman-Ramage generator used.
> RNGkind()
[1] "Mersenne-Twister"       "Buggy Kinderman-Ramage"
> version
                _
platform       i386-pc-mingw32
arch           i386
os             mingw32
system         i386, mingw32
status
major          2
minor          6.2
year           2008
month          02
day            08
svn rev        44383
language       R
version.string R version 2.6.2 (2008-02-08)


========================================
Shengqiao Li

Research Associate
The Department of Statistics
PO Box 6330
West Virginia University
Morgantown, WV 26506-6330
========================================

On Fri, 14 Mar 2008, Prof Brian Ripley wrote:

> On Fri, 14 Mar 2008, Paul Gilbert wrote:
>
>> Could you please supply complete details, including an example to
>> reproduce the error message you get.
>> 
>> The "Buggy Kinderman-Ramage" error message is produced when you try to
>> force the use of an old RNG that is known to have bugs. Usually it
>> should not appear, so I think you are doing something unusual.
>
> And undocumented -- "Buggy Kinderman-Ramage" is not a documented value for 
> normal.kind, so what happens when you use it (or any other undocumented 
> value) is undefined.  (It is not a bug to fail to pick up every user error.)
>
>> 
>> Paul Gilbert
>> 
>> Shengqiao Li wrote:
>>> Unfortunately, RNGkind is buggy. It will not generate warnings
>>> except the full name "Buggy Kinderman-Ramage" is supplied for normal.kind.
>>> 
>>> match.arg is supposed to be called before "==" comparison.
>
> Quote your authority for this, please!
>
>>> 
>>> ========================================
>>> Shengqiao Li
>>> 
>>> Research Associate
>>> The Department of Statistics
>>> PO Box 6330
>>> West Virginia University
>>> Morgantown, WV 26506-6330
>>> 
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>> ====================================================================================
>> 
>> La version française suit le texte anglais.
>> 
>> 
>> ------------------------------------------------------------------------------------
>> 
>> This email may contain privileged and/or confidential information, and the 
>> Bank of
>> Canada does not waive any related rights. Any distribution, use, or copying 
>> of this
>> email or the information it contains by other than the intended recipient 
>> is
>> unauthorized. If you received this email in error please delete it 
>> immediately from
>> your system and notify the sender promptly by email that you have done so.
>> 
>> 
>> ------------------------------------------------------------------------------------
>> 
>> Le présent courriel peut contenir de l'information privilégiée ou 
>> confidentielle.
>> La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute 
>> diffusion,
>> utilisation ou copie de ce courriel ou des renseignements qu'il contient 
>> par une
>> personne autre que le ou les destinataires désignés est interdite. Si 
>> vous recevez
>> ce courriel par erreur, veuillez le supprimer immédiatement et envoyer 
>> sans délai à
>> l'expéditeur un message électronique pour l'aviser que vous avez 
>> éliminé de votre
>> ordinateur toute copie du courriel reçu.
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>> 
>
> -- 
> 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


More information about the R-devel mailing list