<?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 Re: PROC FMM: Order of Components in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FMM-Order-of-Components/m-p/930567#M46374</link>
    <description>&lt;P&gt;If I understand your question, I believe you are referring to a phenomenon known as "label switching." The FMM documentation for &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_fmm_syntax01.htm#statug.fmm.fmmoptpartial" target="_self"&gt;the PARTIAL= option&lt;/A&gt;&amp;nbsp; states:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;In a model in which label switching is a problem, you can sometimes avoid switching by assigning&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;just a few observations to categories. For example, in a three-component model, switching might be&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;prevented if you assign the observation that has the smallest response value to the first component and&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;the observation that has the largest response value to the last component.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can try to post-process the labels by looking at the ParameterEstimates table. If the Intercept1 term is greater than the Intercept2 term, then switch the labels for the parameters and for the mixing probability.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you want to use the RESTRICT statement. That will impose constraints on the parameters for the first and second components, but it does not affect which components are assigned as first and second.&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jun 2024 15:27:35 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2024-06-02T15:27:35Z</dc:date>
    <item>
      <title>PROC FMM: Order of Components</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FMM-Order-of-Components/m-p/930526#M46369</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a simulation study using PROC FMM for a two-component mixture model. When I compare the parameter estimates to the underlying simulated values, I want to ensure that what is called "Component 1" in one iteration of the simulation is consistent with "Component 1" across other iterations of the simulation (e.g., Component 1 is always the mixture with a larger intercept), so that components are comparable across iterations.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have reviewed the documentation for the RESTRICT statement, and see that it says it can be used "to impose order conditions on the parameters in a model" but I can't quite figure out how to implement this. The current code to implement my mixture model using PROC FMM is shown below. I appreciate any suggestions for ordering the components. Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc fmm data=sim55.scenario55_sim_data_events;
	where iteration = 1;
	model log_outc_yrs = age_dx_centered / cl dist=normal k = 2 equate=scale;
	probmodel pdl1_perc_norm / noint cl;
	weight iptw_ipcw_trim97;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2024 16:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FMM-Order-of-Components/m-p/930526#M46369</guid>
      <dc:creator>jl4443</dc:creator>
      <dc:date>2024-06-01T16:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FMM: Order of Components</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FMM-Order-of-Components/m-p/930567#M46374</link>
      <description>&lt;P&gt;If I understand your question, I believe you are referring to a phenomenon known as "label switching." The FMM documentation for &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_fmm_syntax01.htm#statug.fmm.fmmoptpartial" target="_self"&gt;the PARTIAL= option&lt;/A&gt;&amp;nbsp; states:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;In a model in which label switching is a problem, you can sometimes avoid switching by assigning&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;just a few observations to categories. For example, in a three-component model, switching might be&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;prevented if you assign the observation that has the smallest response value to the first component and&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;the observation that has the largest response value to the last component.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can try to post-process the labels by looking at the ParameterEstimates table. If the Intercept1 term is greater than the Intercept2 term, then switch the labels for the parameters and for the mixing probability.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you want to use the RESTRICT statement. That will impose constraints on the parameters for the first and second components, but it does not affect which components are assigned as first and second.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 15:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FMM-Order-of-Components/m-p/930567#M46374</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-06-02T15:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FMM: Order of Components</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FMM-Order-of-Components/m-p/930568#M46375</link>
      <description>&lt;P&gt;This is helpful, thanks! In my case, I think the easiest way to go will be to adjust the components after running the model in a post-processing step. I appreciate your response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 16:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FMM-Order-of-Components/m-p/930568#M46375</guid>
      <dc:creator>jl4443</dc:creator>
      <dc:date>2024-06-02T16:39:48Z</dc:date>
    </item>
  </channel>
</rss>

