[R] Double Exponential

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Thu Jan 30 23:45:04 CET 2003


ifelse(runif(n) > 0.5, 1, -1) * rexp(n)

On Thu, 30 Jan 2003, Jason Parcon wrote:

> To whom it may concern:
> 
> I just would like to know how can one generate a set of random values from the 
> double exponential distribution.  

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list