From skon at stats.snu.ac.kr  Mon Oct  6 13:22:36 2003
From: skon at stats.snu.ac.kr (skon@stats.snu.ac.kr)
Date: Mon Oct  6 12:21:44 2003
Subject: [Rd] rmultinom has a bug. (PR#4431)
Message-ID: <200310061022.h96AMa0P017688@pubhealth.ku.dk>

Full_Name: SungGON Yi.
Version: 1.7.1
OS: Windows 2000 pro
Submission from: (NULL) (147.46.24.107)


p <- runif(4)
rmultinom(1, 100, c(p, 0, 0, 0, 0))

That result are a wrong. For example,
     [,1]
[1,]   21
[2,]   59
[3,]    6
[4,]   NA
[5,]    0
[6,]    0
[7,]    0
[8,]    0


[Rd] rmultinom has a bug. (PR#4431)
skon@stats.snu.ac.kr