Learn R Programming

CompLognormal (version 1.0)

rcomplnorm: Composite lognormal random numbers

Description

Generates random numbers from the composite lognormal distribution

Usage

rcomplnorm(n, spec, sigma = 1, theta = 1, ...)

Arguments

n
number of random numbers to be generated
sigma
the value of sigma parameter of the lognormal distribution, must be positive
theta
the value of theta parameter of the lognormal distribution, must be positive
spec
the specific distribution with which lognormal should be composited with
...
other parameters

Value

  • An object of the length n, giving the random numbers from the composite lognormal distribution

References

S. Nadarajah, S. A. A. Bakar, CompLognormal: A new R package, submitted

Examples

Run this code
y=rcomplnorm(100,"exp",rate=1)

Run the code above in your browser using DataLab