slnorm: The Lognormal Distribution

Description Usage Arguments Value See Also Examples

View source: R/lnorm.R

Description

Descriptive statistics for the log normal distribution whose logarithm has mean equal to meanlog and standard deviation equal to sdlog.

Usage

1
2
slnorm(meanlog = 0, sdlog = 1, statistic = c("all", "mean", "median",
  "sd", "var", "skew", "kurt"))

Arguments

meanlog, sdlog

mean and standard deviation of the distribution on the log scale with default values of 0 and 1 respectively.

statistic

desired descriptive statistic

Value

named numeric vector

See Also

Lognormal

https://en.wikipedia.org/wiki/Log-normal_distribution

Examples

1
2
3
4
5
6
7
8
curve(dlnorm(x, 0, 0.25), xlim = c(0, 2.5))
slnorm(0, 0.25)

curve(dlnorm(x, 0, 0.5), xlim = c(0, 2.5))
slnorm(0, 0.5)

curve(dlnorm(x), xlim = c(0, 2.5))
slnorm()

schuelkem/sdist documentation built on Nov. 5, 2019, 8:45 a.m.