Re: [R] Generate Random Samples

2008-06-12 Thread Moshe Olshansky
variable X in (0,1) and then generate the 1st component if X < p1, the 2nd one if p1 <= X < p1+p2 and the 3rd one if X >=p1+p2. --- On Fri, 13/6/08, Peng Jiang <[EMAIL PROTECTED]> wrote: > From: Peng Jiang <[EMAIL PROTECTED]> > Subject: [R] Generate Random Samp

[R] Generate Random Samples

2008-06-12 Thread Peng Jiang
Hi, I am a newbie to R and I am working with a Mac. Is there any package that I can use to generate random samples from a user defined distribution ? That is , I define a distribution function ( maybe multi dimension ) and I want some random samples generated from my this distribution.