Dear list,
I tried to fit a mixture of 2 normals using library mclust:
> x <- c(rnorm(50),rnorm(50,mean=1000))
> mx <- as.matrix(x)
> emx <- emclust(mx,nclus=2,modelid="EEE")
Error in emclust(mx, nclus = 2, modelid = "EEE") :
data must be matrix-conformal
(Other modelid: Same problem.)
Does this mean that emclust does not work on 1-dimensional data?
If so, how to fit a mixture of 1-dimensional normals?
Best,
Christian
--
***********************************************************************
Christian Hennig
Seminar fuer Statistik, ETH-Zentrum (LEO), CH-8092 Zuerich (current)
and Fachbereich Mathematik-SPST/ZMS, Universitaet Hamburg
hennig at stat.math.ethz.ch, http://stat.ethz.ch/~hennig/
hennig at math.uni-hamburg.de, http://www.math.uni-hamburg.de/home/hennig/
#######################################################################
ich empfehle www.boag.de
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._