"lcdmix"
which
contains mixture proportions at each observation and all the information of the
estimated component densities.EMmixlcd( x, k = 2, y, props, epsratio=10^-6, max.iter=50,
epstheta=10^-8, verbose=-1 )
matrix
matrix
giving the starting values for the EM
algorithm. If none given, a hierachical Gaussian clustering model is used. To reduce the
computational burden while allowing sufficient flexibility for the EM "lcdmix"
, with the following components:maxtrix
of the log of the maximum likelihood estimate,
evaluated at the observation points for each component.mlelcd
. In fact, the incorporation of the weights in the
maximization process in mlelcd
presents no additional complication.In our case, because of the computational intensity of the method, we first cluster the points according to ta hierarchical Gaussian clustering model and then iterate the EM algorithm until the increase in the proportion of the likelihood is less than a pre-specified quantity at each step.
More technical details can be found in Cule, Samworth and Stewart(2010)
McLachlan, G. J. and Krishnan, T. (1997) The EM Algorithm and Extensions, New York: Wiley.
mclust
,
logcondens
,
plot.LogConcDEAD
,mlelcd
, dlcd
##Simple bivariate normal data
set.seed( 1 )
n = 15
d = 2
props=c( 0.6, 0.4 )
shift=2
x <- matrix( rnorm( n*d ), ncol = d )
shiftvec <- ifelse( runif( n ) > props[ 1 ], 0, shift )
x[,1] <- x[,1] + shiftvec
EMmixlcd( x, k = 2, max.iter = 5)
Run the code above in your browser using DataLab