View source: R/MclustBounded.R
MclustBoundedParameters | R Documentation |
Given a GMM for bounded data, computes the means and variances in the original scale from the estimated mixture components parameters dataset using simulations.
MclustBoundedParameters(object, nsim = 1e+06, ...)
object |
An object of class |
nsim |
An integer specifying the number of simulations to employ. |
... |
Further arguments passed to or from other methods. |
x = rlnorm(1000, 0, 1)
mod = densityMclustBounded(x, lbound = 0, lambda = 0)
summary(mod, parameters = TRUE)
plot(mod, what = "density")
# transformed parameters (from log-normal distribution)
# mean
with(mod$parameters,
exp(mean + 0.5*variance$sigmasq))
# var
with(mod$parameters,
(exp(variance$sigmasq) - 1)*exp(2*mean + variance$sigmasq))
# using simulations
MclustBoundedParameters(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.