powered by
Density, distribution function, quantile function and random generation for the lognormal mixture distribution with means equal to 'mu' and standard deviations equal to 's'.
dmlnorm(x,p,mean,sd) pmlnorm(q,p,mean,sd) qmlnorm(prob,p,mean,sd) rmlnorm(n,p,mean,sd)
return the density, probability, quantile and random value for the four functions, respectively.
vector of quantiles in dmixnorm and pmixnorm. In qmixnorm, 'x' is a vector of probabilities.
proportions of the mixture components.
A vector of probabilities.
number of observations. If 'length(n) > 1', the length is taken to be the number required.
vector of means
vector of standard deviations
p <- c(.4,.6) mu <- c(1,4) s <- c(2,3) dmlnorm(c(0,1,2,20),p,mu,s) pmlnorm(c(0,1,2,20),p,mu,s) qmlnorm(c(0,1,.2,.20),p,mu,s) rmlnorm(3,p,mu,s)
Run the code above in your browser using DataLab