Last chance! 50% off unlimited learning
Sale ends in
The number of components in the mixed log-normal distribution is specified by the length of the parameter vectors. The quantiles are numerically obtained from the distribution function using monotone cubic splines.
rlnormmix(n, meanlog, sdlog, prop)dlnormmix(x, meanlog, sdlog, prop)
plnormmix(q, meanlog, sdlog, prop)
qlnormmix(p, meanlog, sdlog, prop)
dlnormmix()
gives a vector of length length(x)
containing the density at x
.
plnormmix()
gives a
vector of length length(q)
containing
the distribution function at the corresponding values of q
.
qlnormmix()
gives a vector of length length(p)
containing the quantiles at the corresponding values of p
.
rlnormmix()
generates a vector of length n
containing the random samples.
integer value, the number of random samples to be
generated with rlnormmix()
.
numeric vector holding the means of the components on the log scale.
numeric vector holding the standard deviations of the components on the log scale.
numeric vector, holding the mixing proportions of the components.
numeric vector giving the points where the density function is evaluated.
numeric vector giving the quantiles where the distribution function is evaluated.
numeric vector giving the probabilities where the quantile function is evaluated.
rlnormmix(10, meanlog = c(1, 3, 7), sdlog = c(2, 2, 4), prop = c(0.6, 0.3, 0.1))
dlnormmix(c(0, 2, 1), meanlog = c(1, 3), sdlog = c(2, 2), prop = c(0.6, 0.4))
prob <- plnormmix(c(0.1, 7), meanlog = c(1, 3, 7), sdlog = c(2, 2, 4), prop = c(0.6, 0.3, 0.1))
prob
qlnormmix(prob, meanlog = c(1, 3, 7), sdlog = c(2, 2, 4), prop = c(0.6, 0.3, 0.1))
Run the code above in your browser using DataLab