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. Thanks. Jason Parcon
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
What do you mean by "double exponential"? Can you give us another more familiar name (e.g. Laplacian), or a reference, or a more detailed description, or a formula for the cumulative or probability density function? Ben Bolker 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. > > Thanks. > > Jason Parcon > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > http://www.stat.math.ethz.ch/mailman/listinfo/r-help >-- 318 Carr Hall bolker at zoo.ufl.edu Zoology Department, University of Florida http://www.zoo.ufl.edu/bolker Box 118525 (ph) 352-392-5697 Gainesville, FL 32611-8525 (fax) 352-392-3704