<?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 Help, my K-means clustering is not allowing me to filter my data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-my-K-means-clustering-is-not-allowing-me-to-filter-my-data/m-p/962948#M48276</link>
    <description>&lt;P&gt;I am trying to filter my data set to cluster only records with the cause of death to be cancer or coronary heart disease. I have tried re-wording the filter several times with the exact same results. Any ideas? TIA&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;&lt;P&gt;What hints do you have?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the filter is applied" style="width: 477px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105764i8C5244FD5E2852D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Filter.PNG" alt="the filter is applied" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the filter is applied&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the filter is gone when program ran" style="width: 641px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105766i263132B9C66675F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Output DataPNG.PNG" alt="the filter is gone when program ran" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the filter is gone when program ran&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc stdize data=WORK.PRINCOMP_SCORES_HEART_DEAD out=Work._std_ method=range;
	var Prin1 Prin2 Prin3;
run;

proc fastclus data=Work._std_ maxclusters=2 maxiter=20 drift distance 
		out=work.Fastclus_scores_PCA outstat=work.Fastclus_stats_PCA 
		outseed=work.Fastclus_seeds_PCA;
	where "DeathCause in ('Cancer', 'Coronary Heart Disease')";
	var Prin1 Prin2 Prin3;
run;

proc delete data=Work._std_;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Mar 2025 00:57:18 GMT</pubDate>
    <dc:creator>whyamihere</dc:creator>
    <dc:date>2025-03-30T00:57:18Z</dc:date>
    <item>
      <title>Help, my K-means clustering is not allowing me to filter my data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-my-K-means-clustering-is-not-allowing-me-to-filter-my-data/m-p/962948#M48276</link>
      <description>&lt;P&gt;I am trying to filter my data set to cluster only records with the cause of death to be cancer or coronary heart disease. I have tried re-wording the filter several times with the exact same results. Any ideas? TIA&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;&lt;P&gt;What hints do you have?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the filter is applied" style="width: 477px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105764i8C5244FD5E2852D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Filter.PNG" alt="the filter is applied" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the filter is applied&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the filter is gone when program ran" style="width: 641px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105766i263132B9C66675F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Output DataPNG.PNG" alt="the filter is gone when program ran" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the filter is gone when program ran&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc stdize data=WORK.PRINCOMP_SCORES_HEART_DEAD out=Work._std_ method=range;
	var Prin1 Prin2 Prin3;
run;

proc fastclus data=Work._std_ maxclusters=2 maxiter=20 drift distance 
		out=work.Fastclus_scores_PCA outstat=work.Fastclus_stats_PCA 
		outseed=work.Fastclus_seeds_PCA;
	where "DeathCause in ('Cancer', 'Coronary Heart Disease')";
	var Prin1 Prin2 Prin3;
run;

proc delete data=Work._std_;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Mar 2025 00:57:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-my-K-means-clustering-is-not-allowing-me-to-filter-my-data/m-p/962948#M48276</guid>
      <dc:creator>whyamihere</dc:creator>
      <dc:date>2025-03-30T00:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help, my K-means clustering is not allowing me to filter my data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-my-K-means-clustering-is-not-allowing-me-to-filter-my-data/m-p/962956#M48278</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where "DeathCause in ('Cancer', 'Coronary Heart Disease')";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do not put double quotes (or single quotes) around the the WHERE condition. This is also probably why the filter doesn't work in your first screen shot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where DeathCause in ('Cancer', 'Coronary Heart Disease');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 30 Mar 2025 10:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-my-K-means-clustering-is-not-allowing-me-to-filter-my-data/m-p/962956#M48278</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-03-30T10:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help, my K-means clustering is not allowing me to filter my data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-my-K-means-clustering-is-not-allowing-me-to-filter-my-data/m-p/962976#M48280</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 30 Mar 2025 17:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-my-K-means-clustering-is-not-allowing-me-to-filter-my-data/m-p/962976#M48280</guid>
      <dc:creator>whyamihere</dc:creator>
      <dc:date>2025-03-30T17:14:36Z</dc:date>
    </item>
  </channel>
</rss>

