Re: [R] [PS] rmultinomial() function

2008-03-19 Thread Ben Fairbank
Mary -- The dmultinomial function (try ?Multinomial, noting that it is an upper case M) has a log option, which, if set to TRUE, returns logarithms of probabilities, but that is for computing probabilities, not generating samples. Perhaps the long you referred to is a misprint for log? In any

Re: [R] [PS] rmultinomial() function

2008-03-19 Thread Mary Black
Thanks Ben and Eric. I've already tried rmultinom(), and there is a rmultinomial() function as well (which is in the multinomRob package). The rmultinomial() is supposed to be a random number generator for the multinomial distribution. There is an argument long which if set to TRUE or FALSE,