Learn R Programming

mclustAddons (version 0.10)

MclustBoundedParameters: Recover parameters in the original scale

Description

Given a GMM for bounded data, computes the means and variances in the original scale from the estimated mixture components parameters dataset using simulations.

Usage

MclustBoundedParameters(object, nsim = 1e+06, ...)

Arguments

object

An object of class 'MclustBounded' or 'densityMclustBounded'.

nsim

An integer specifying the number of simulations to employ.

...

Further arguments passed to or from other methods.

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab