for \(\lambda\)>0 where \(\alpha\) and \(\lambda\) are the location and scale parameters, respectively.
Usage
draw.laplace(nrep, alpha, lambda)
Arguments
nrep
Number of data points to generate.
alpha
Location parameter for the desired Laplace distribution.
lambda
Scale parameter for the desired Laplace distribution.
Value
A list of length five containing generated data, the theoretical mean, the empirical mean, the theoretical variance, and the empirical variance with names y, theo.mean, emp.mean, theo.var, and emp.var, respectively.