<div dir="ltr">It looks like the recent update of Mclust to version 5 has caused this to fail. <div><br></div><div>If you are using a Mac or Linux and can compile packages from source, then you could downgrade Mclust to the previous version 4.4 as follows:</div><div><br></div><div><div><font face="monospace, monospace"><a href="http://old.mc">old.mc</a> <- "<a href="https://cran.r-project.org/src/contrib/Archive/mclust/mclust_4.4.tar.gz">https://cran.r-project.org/src/contrib/Archive/mclust/mclust_4.4.tar.gz</a>"</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">install.packages(<a href="http://old.mc">old.mc</a>, repos=NULL, type="source")</font></div></div><div><br></div><div>If you use Windows you  might be able to find a compiled ZIP for mclust 4.4 on the web somewhere.<br></div><div><br></div><div><br></div><div>After that, everything works as expected:</div><div><br></div><div><div><font face="monospace, monospace">> <a href="http://seg.mc">seg.mc</a> <- Mclust(seg.df.num)</font></div><div><font face="monospace, monospace">> summary(<a href="http://seg.mc">seg.mc</a>)</font></div><div><font face="monospace, monospace">----------------------------------------------------</font></div><div><font face="monospace, monospace">Gaussian finite mixture model fitted by EM algorithm </font></div><div><font face="monospace, monospace">----------------------------------------------------</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Mclust EEV (ellipsoidal, equal volume and shape) model with 3 components:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> log.likelihood   n df       BIC       ICL</font></div><div><font face="monospace, monospace">      -5256.222 300 71 -10917.41 -10955.48</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Clustering table:</font></div><div><font face="monospace, monospace">  1   2   3 </font></div><div><font face="monospace, monospace">111 115  74 </font></div></div><div><font face="monospace, monospace"><br></font></div><div><br></div><div>Hopefully the Mclust developers will fix this. I'll email them and ask! Thanks for the report, and I hope you're enjoying the book,<br></div><div><br></div><div>-- Chris</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 23, 2015 at 5:38 PM, Caleb Terrel Orellana <span dir="ltr"><<a href="mailto:caleb.terrel@gmail.com" target="_blank">caleb.terrel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi , on page 314 of the book R MARKETING  RESEARCH AND ANALYTICS </div><div><br></div><div><div>the code:</div><div><br></div><div>library(mclust)</div><div><a href="http://seg.mc" target="_blank">seg.mc</a> <- Mclust(seg.df.num)</div></div><div><br></div><div>result:</div><div><br></div>Error in svd(shape.o, nu=0) :infinite or missing values in 'x'.<div><br></div><div>why?<span class="HOEnZb"><font color="#888888"><br><div><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><br></div><font size="2" style="background-color:rgb(255,255,255)" color="#0b5394">Saludos cordiales.</font><div><font size="2" style="background-color:rgb(255,255,255)" color="#0b5394"><br></font></div><div><font size="2" color="#0b5394"><b style="background-color:rgb(255,255,255)">Caleb Terrel Orellana</b></font></div><div><font size="2" style="background-color:rgb(255,255,255)" color="#0b5394">CONSULTOR ESTADÍSTICO</font></div><div><font size="2" style="background-color:rgb(255,255,255)" color="#0b5394">993 319 507</font></div><div><a href="http://pe.linkedin.com/pub/caleb-terrel-orellana/29/a20/933" target="_blank">http://pe.linkedin.com/pub/caleb-terrel-orellana/29/a20/933</a><br></div><div><a href="https://www.facebook.com/pages/Statistical-Solutions/1559961577550284" target="_blank">https://www.facebook.com/pages/Statistical-Solutions/1559961577550284</a><br></div></div></div></div></div>
</div></font></span></div></div>
</blockquote></div><br></div>