Re: [R] Rejection sampling to draw from distributions

2008-03-14 Thread Charles C. Berry
On Fri, 14 Mar 2008, Anup Nandialath wrote: > Dear friends, > > Please find below the code that I have employed for a rejection sampler > to draw from asymmetric laplace distributions. I was wondering if this > code can be written more efficiently? Are there more efficient ways of > drawing ran

[R] Rejection sampling to draw from distributions

2008-03-14 Thread Anup Nandialath
Dear friends, Please find below the code that I have employed for a rejection sampler to draw from asymmetric laplace distributions. I was wondering if this code can be written more efficiently? Are there more efficient ways of drawing random numbers from asymmetric laplace distributions?? Tha