RE: [R] Laplacian Distribution

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Wed 07 Jul 2004 - 00:56:09 EST


How about something like:

n <- 100
x <- sign(runif(n) - 0.5) * rexp(n)

??

Andy

> From: Yao, Minghua
>
> All,
>
> Could anybody please tell me how to generate Laplacian
> distributed random numbers? Thanks.
>
> Minghua



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 07 01:00:10 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:44 EST