Lognormal               package:stats               R Documentation

_T_h_e _L_o_g _N_o_r_m_a_l _D_i_s_t_r_i_b_u_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Density, distribution function, quantile function and random
     generation for the log normal distribution whose logarithm has
     mean equal to 'meanlog' and standard  deviation equal to 'sdlog'.

_U_s_a_g_e:

     dlnorm(x, meanlog = 0, sdlog = 1, log = FALSE)
     plnorm(q, meanlog = 0, sdlog = 1, lower.tail = TRUE, log.p = FALSE)
     qlnorm(p, meanlog = 0, sdlog = 1, lower.tail = TRUE, log.p = FALSE)
     rlnorm(n, meanlog = 0, sdlog = 1)

_A_r_g_u_m_e_n_t_s:

    x, q: vector of quantiles.

       p: vector of probabilities.

       n: number of observations. If 'length(n) > 1', the length is
          taken to be the number required.

meanlog, sdlog: mean and standard deviation of the distribution on the
          log scale with default values of '0' and '1' respectively.

log, log.p: logical; if TRUE, probabilities p are given as log(p).

lower.tail: logical; if TRUE (default), probabilities are P[X <= x],
          otherwise, P[X > x].

_D_e_t_a_i_l_s:

     The log normal distribution has density

   f(x) = 1/(sqrt(2 pi) sigma x) e^-((log x - mu)^2 / (2 sigma^2))

     where mu and sigma are the mean and standard deviation of the
     logarithm. The mean is E(X) = exp(mu + 1/2 sigma^2), the median is
     med(X) = exp(mu), and the variance Var(X) = exp(2*mu +
     sigma^2)*(exp(sigma^2) - 1) and hence the coefficient of variation
     is sqrt(exp(sigma^2) - 1) which is approximately sigma when that
     is small (e.g., sigma < 1/2).

_V_a_l_u_e:

     'dlnorm' gives the density, 'plnorm' gives the distribution
     function, 'qlnorm' gives the quantile function, and 'rlnorm'
     generates random deviates.

_N_o_t_e:

     The cumulative hazard H(t) = - log(1 - F(t)) is '-plnorm(t, r,
     lower = FALSE, log = TRUE)'.

_S_o_u_r_c_e:

     'dlnorm' is calculated from the definition (in 'Details').
     '[pqr]lnorm' are based on the relationship to the normal.

_R_e_f_e_r_e_n_c_e_s:

     Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) _The New S
     Language_. Wadsworth & Brooks/Cole.

     Johnson, N. L., Kotz, S. and Balakrishnan, N. (1995) _Continuous
     Univariate Distributions_, volume 1, chapter 14. Wiley, New York.

_S_e_e _A_l_s_o:

     'dnorm' for the normal distribution.

_E_x_a_m_p_l_e_s:

     dlnorm(1) == dnorm(0)

