Generate random numbers from an exponential distribution, rescaled to have user-specified population mean and standard deviation.
Arguments
- n
The number of random numbers to generate.
- rate
rate
forstats::rexp()
.- pmean
Population mean.
- psd
Population standard deviation.
- rev
If TRUE, the distribution is revered to generate a negatively skewed distribution. Default is FALSE.
Details
First, specify the parameter,
rate
, and the
desired population mean and standard
deviation. The random numbers, drawn
from an exponential distribution by
stats::rexp()
, will then be
rescaled with the desired population
mean and standard.