Last chance! 50% off unlimited learning
Sale ends in
Density, distribution function, quantile function, and random generation
for the three-parameter lognormal distribution with parameters meanlog
,
sdlog
, and threshold
.
dlnorm3(x, meanlog = 0, sdlog = 1, threshold = 0)
plnorm3(q, meanlog = 0, sdlog = 1, threshold = 0)
qlnorm3(p, meanlog = 0, sdlog = 1, threshold = 0)
rlnorm3(n, meanlog = 0, sdlog = 1, threshold = 0)
vector of quantiles.
vector of quantiles.
vector of probabilities between 0 and 1.
sample size. If length(n)
is larger than 1, then length(n)
random values are returned.
vector of means of the distribution of the random variable on the log scale.
The default is meanlog=0
.
vector of (positive) standard deviations of the random variable on the log scale.
The default is sdlog=1
.
vector of thresholds of the random variable on the log scale. The default
is threshold=0
.
dlnorm3
gives the density, plnorm3
gives the distribution function,
qlnorm3
gives the quantile function, and rlnorm3
generates random
deviates.
The three-parameter lognormal distribution is simply the usual two-parameter lognormal distribution with a location shift.
Let meanlog=
sdlog=
threshold=
meanlog=
sdlog=
dlnorm3
calls dlnorm
using the arguments
x = x - threshold
, meanlog = meanlog
,
sdlog = sdlog
plnorm3
calls plnorm
using the arguments
q = q - threshold
, meanlog = meanlog
, sdlog = sdlog
qlnorm3
calls qlnorm
using the arguments
q = q
, meanlog = meanlog
, sdlog = sdlog
and then adds
the argument threshold
to the result.
rlnorm3
calls rlnorm
using the arguments
n = n
, meanlog = meanlog
, sdlog = sdlog
and then adds
the argument threshold
to the result.
The threshold parameter
Denote the mean, variance, and coefficient of variation of
Since quantiles of a distribution are preserved under monotonic transformations,
the median of
Aitchison, J., and J.A.C. Brown (1957). The Lognormal Distribution (with special references to its uses in economics). Cambridge University Press, London, 176pp.
Crow, E.L., and K. Shimizu. (1988). Lognormal Distributions: Theory and Applications. Marcel Dekker, New York, 387pp.
Forbes, C., M. Evans, N. Hastings, and B. Peacock. (2011). Statistical Distributions. Fourth Edition. John Wiley and Sons, Hoboken, NJ.
Johnson, N. L., S. Kotz, and N. Balakrishnan. (1994). Continuous Univariate Distributions, Volume 1. Second Edition. John Wiley and Sons, New York.
Ott, W.R. (1990). A Physical Explanation of the Lognormality of Pollutant Concentrations. Journal of the Air and Waste Management Association 40, 1378--1383.
Ott, W.R. (1995). Environmental Statistics and Data Analysis. Lewis Publishers, Boca Raton, FL, Chapter 9.
Royston, J.P. (1992b). Estimation, Reference Ranges and Goodness of Fit for the Three-Parameter Log-Normal Distribution. Statistics in Medicine 11, 897--912.
Wicksell, S.D. (1917). On Logarithmic Correlation with an Application to the Distribution of Ages at First Marriage. Medd. Lunds. Astr. Obs. 84, 1--21.
Lognormal, elnorm3
,
Probability Distributions and Random Numbers.
# NOT RUN {
# Density of the three-parameter lognormal distribution with
# parameters meanlog=1, sdlog=2, and threshold=10, evaluated at 10.5:
dlnorm3(10.5, 1, 2, 10)
#[1] 0.278794
#----------
# The cdf of the three-parameter lognormal distribution with
# parameters meanlog=2, sdlog=3, and threshold=5, evaluated at 9:
plnorm3(9, 2, 3, 5)
#[1] 0.4189546
#----------
# The median of the three-parameter lognormal distribution with
# parameters meanlog=2, sdlog=3, and threshold=20:
qlnorm3(0.5, 2, 3, 20)
#[1] 27.38906
#----------
# Random sample of 3 observations from the three-parameter lognormal
# distribution with parameters meanlog=2, sdlog=1, and threshold=-5.
# (Note: the call to set.seed simply allows you to reproduce this example.)
set.seed(20)
rlnorm3(3, 2, 1, -5)
#[1] 18.6339749 -0.8873173 39.0561521
# }
Run the code above in your browser using DataLab