<?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 How to apply the RESTRICT statement in proc FMM with k=4 in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-the-RESTRICT-statement-in-proc-FMM-with-k-4/m-p/605329#M29401</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am fitting a finite mixture model using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc fmm data=mydataset;&lt;BR /&gt;class x1&amp;nbsp; ;&lt;BR /&gt;model y = x1&amp;nbsp; x2 / dist=poisson k=4;&lt;BR /&gt;restrict x2 1, x2 -1,x2 1,x2 -1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; would like to restrict x2 to be the same across the 4 classes. I have seen examples for k=2 and in fact the code above makes the x2 coeffs equal in the first 2 components&amp;nbsp; but the coefs in the 3rd and 4rth components are not the same.&lt;/P&gt;&lt;P&gt;I have tried different combinations but they have failed.&lt;/P&gt;&lt;P&gt;It would be great if you could help me correctly add the restrict statement.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nikos&lt;/P&gt;&lt;P&gt;SAS 9.4&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 08:03:59 GMT</pubDate>
    <dc:creator>npandis</dc:creator>
    <dc:date>2019-11-19T08:03:59Z</dc:date>
    <item>
      <title>How to apply the RESTRICT statement in proc FMM with k=4</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-the-RESTRICT-statement-in-proc-FMM-with-k-4/m-p/605329#M29401</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am fitting a finite mixture model using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc fmm data=mydataset;&lt;BR /&gt;class x1&amp;nbsp; ;&lt;BR /&gt;model y = x1&amp;nbsp; x2 / dist=poisson k=4;&lt;BR /&gt;restrict x2 1, x2 -1,x2 1,x2 -1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; would like to restrict x2 to be the same across the 4 classes. I have seen examples for k=2 and in fact the code above makes the x2 coeffs equal in the first 2 components&amp;nbsp; but the coefs in the 3rd and 4rth components are not the same.&lt;/P&gt;&lt;P&gt;I have tried different combinations but they have failed.&lt;/P&gt;&lt;P&gt;It would be great if you could help me correctly add the restrict statement.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nikos&lt;/P&gt;&lt;P&gt;SAS 9.4&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 08:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-the-RESTRICT-statement-in-proc-FMM-with-k-4/m-p/605329#M29401</guid>
      <dc:creator>npandis</dc:creator>
      <dc:date>2019-11-19T08:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply the RESTRICT statement in proc FMM with k=4</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-the-RESTRICT-statement-in-proc-FMM-with-k-4/m-p/605411#M29404</link>
      <description>&lt;P&gt;It looks like your problem is equivalent to modeling (y - x2). I suggest you create a new variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Y2 = Y - X2;&lt;/P&gt;
&lt;P&gt;and then&lt;/P&gt;
&lt;P&gt;MODEL Y2 = X1 / dist=Poisson k=4;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 14:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-the-RESTRICT-statement-in-proc-FMM-with-k-4/m-p/605411#M29404</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-11-19T14:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply the RESTRICT statement in proc FMM with k=4</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-the-RESTRICT-statement-in-proc-FMM-with-k-4/m-p/605502#M29412</link>
      <description>&lt;P&gt;Dear Rick,&lt;/P&gt;&lt;P&gt;Thank you for the response which I tried to implement.&lt;/P&gt;&lt;P&gt;The model converged but provided no estimates for the predictor and only values for the intercepts of the 4 components.&lt;/P&gt;&lt;P&gt;The Pearson statistic is also strange 4.12E-15! I have about 400 observations.&lt;/P&gt;&lt;P&gt;For the above model I subtracted the continuous predictor X2 from the Y and X1 was binary.&lt;/P&gt;&lt;P&gt;Also, what if all my predictors are all categorical?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Nikos&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Nov 2019 19:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-the-RESTRICT-statement-in-proc-FMM-with-k-4/m-p/605502#M29412</guid>
      <dc:creator>npandis</dc:creator>
      <dc:date>2019-11-19T19:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply the RESTRICT statement in proc FMM with k=4</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-the-RESTRICT-statement-in-proc-FMM-with-k-4/m-p/605522#M29413</link>
      <description>&lt;P&gt;OK, thanks for the report. I haven't used the RESTRICT statement in FMM, so I thought I'd suggest a workaround. Hopefully, someone with more experience will provide an answer.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 20:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-the-RESTRICT-statement-in-proc-FMM-with-k-4/m-p/605522#M29413</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-11-19T20:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply the RESTRICT statement in proc FMM with k=4</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-the-RESTRICT-statement-in-proc-FMM-with-k-4/m-p/605552#M29414</link>
      <description>&lt;P&gt;I have found a solution by applying 3 restrict statements:&lt;/P&gt;&lt;P&gt;restrict X2 1 , X2&amp;nbsp; -1;&lt;BR /&gt;restrict X2 1, X2&amp;nbsp; 0, X2 -1;&lt;BR /&gt;restrict X2&amp;nbsp; 0, X2&amp;nbsp; 0, X2 1, X2&amp;nbsp; -1;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nikos&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 22:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-the-RESTRICT-statement-in-proc-FMM-with-k-4/m-p/605552#M29414</guid>
      <dc:creator>npandis</dc:creator>
      <dc:date>2019-11-19T22:09:53Z</dc:date>
    </item>
  </channel>
</rss>

