<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Gaussian mixture model  proc fmm in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Gaussian-mixture-model-proc-fmm/m-p/510724#M26150</link>
    <description>&lt;P&gt;in case of&amp;nbsp; multiple variables(+100 variables),the following statement is OK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc fmm data=XXX;&lt;BR /&gt;class XXX;←think separately about model?&lt;BR /&gt;model A=,B=C=,・・・・・・ = / k=X;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Nov 2018 12:02:01 GMT</pubDate>
    <dc:creator>yuhhwa</dc:creator>
    <dc:date>2018-11-06T12:02:01Z</dc:date>
    <item>
      <title>Gaussian mixture model  proc fmm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Gaussian-mixture-model-proc-fmm/m-p/510724#M26150</link>
      <description>&lt;P&gt;in case of&amp;nbsp; multiple variables(+100 variables),the following statement is OK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc fmm data=XXX;&lt;BR /&gt;class XXX;←think separately about model?&lt;BR /&gt;model A=,B=C=,・・・・・・ = / k=X;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 12:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Gaussian-mixture-model-proc-fmm/m-p/510724#M26150</guid>
      <dc:creator>yuhhwa</dc:creator>
      <dc:date>2018-11-06T12:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Gaussian mixture model  proc fmm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Gaussian-mixture-model-proc-fmm/m-p/511016#M26162</link>
      <description>&lt;P&gt;Your statements are not valid syntax.&lt;/P&gt;
&lt;P&gt;1. How does the classification variable enter the models?&lt;/P&gt;
&lt;P&gt;2. The K= option requires a constant value, such as K=2 or K=3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. You cannot use commas to separate models. You cannot put multiple models on one MODEL statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is not clear what you are trying to accomplish, but here is a guess.&lt;/P&gt;
&lt;P&gt;A. It looks like you might have many response variables named Y1, Y2, Y3, ..., Y100&lt;/P&gt;
&lt;P&gt;B.&amp;nbsp;It looks like you are trying to fit them all with a mixture of k Gaussian&amp;nbsp;distributions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If those assumptions are correct then you should &lt;A href="https://blogs.sas.com/content/iml/2011/01/31/reshaping-data-from-wide-to-long-format.html" target="_self"&gt;convert your data from wide to long format.&lt;/A&gt;&amp;nbsp;Let Y be the name of the long variable that contains the values for variables Y1, ..., Y100 and let B be an indicator variable that indicates which observations correspond to which variables. Then you can use syntax such as the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fmm data=LongData plots=none;
   by B;
   model Y= / k=2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Almost surely you do not want 100 pages of output, so you should suppress ODS output and write the results (parameter estimates?) to a data set. You should study the techniques in the following&amp;nbsp;articles:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2012/07/18/simulation-in-sas-the-slow-way-or-the-by-way.html" target="_self"&gt;Simulation in SAS: The slow way or the BY way&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/05/24/turn-off-ods-for-simulations.html" target="_self"&gt;Turn off ODS when running simulations in SAS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html" target="_self"&gt;An easy way to run thousands of regressions in SAS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 13:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Gaussian-mixture-model-proc-fmm/m-p/511016#M26162</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-11-07T13:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Gaussian mixture model  proc fmm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Gaussian-mixture-model-proc-fmm/m-p/511250#M26171</link>
      <description>&lt;P&gt;thank you for replying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;It is not clear what you are trying to accomplish, but here is a guess.&lt;/P&gt;&lt;P&gt;A. It looks like you might have many response variables named Y1, Y2, Y3, ..., Y100&lt;/P&gt;&lt;P&gt;B.&amp;nbsp;It looks like you are trying to fit them all with a mixture of k Gaussian&amp;nbsp;distributions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A and B is&amp;nbsp; right, but I want to cluster combination of multiple variables as well as k-means.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   proc fastclus data=stan out=clust maxclusters=3;
      var v1 v2 v3;
   run;&lt;/PRE&gt;&lt;P&gt;I think the way you taught me is to cluster variables separately. Is it right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you are OK,please tell me&amp;nbsp; how shoud I wright the statement&amp;nbsp;Gaussian mixture model&amp;nbsp; compared with k-means.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 01:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Gaussian-mixture-model-proc-fmm/m-p/511250#M26171</guid>
      <dc:creator>yuhhwa</dc:creator>
      <dc:date>2018-11-08T01:16:43Z</dc:date>
    </item>
  </channel>
</rss>

