[RsR] Data generation from Laplace distribution in R

maj at stats.waikato.ac.nz maj at stats.waikato.ac.nz
Sun Nov 16 10:17:33 CET 2008


It seems to me that in the zero mean case you should generate exponential
data and attach a random +/- sign. You can translate the resulting data to
centre on the desired mean for the general case.

Murray Jorgensen

> Hi, Everyone,
>
> I have problem in data generation using Laplace distribution. i tried
> "rlaplace()" in VGAM package but when i install this package then
> predict(lm(...)) and resid(lm(...)) etc does not work. please let me know
> if anyone who know how to deal with it, and generate Laplace data. it
> would
> be greatly appreciated. thanks in advance,
>
> Dost,
>
> _______________________________________________
> R-SIG-Robust at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-robust
>



More information about the R-SIG-Robust mailing list