<?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 DISCRIM ERROR in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-DISCRIM-ERROR/m-p/307553#M65894</link>
    <description>&lt;P&gt;I would try counting the non empty classes with something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select count(distinct cluster) into :nClass
from clust
where nmiss(%sysfunc(translate(&amp;amp;var,%str(,),%str( ))))=0;

%if &amp;amp;nClass &amp;gt; 1 %then %do;
proc discrim...
%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(untested)&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2016 03:27:47 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-10-27T03:27:47Z</dc:date>
    <item>
      <title>PROC DISCRIM ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DISCRIM-ERROR/m-p/307538#M65887</link>
      <description>&lt;P&gt;Hi, I'm processing data. I have some specials sets that SAS consider as a currupt and then it ignored.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have clusters, in some cases SAS ignore all the information on an specific cluster, then I try to run PROC DISCRIM the error appear:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;DIV class="sasError focus-line"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;proc discrim data=clust method=normal pool=test crossvalidate;&lt;BR /&gt;priors proportional;&lt;BR /&gt;class cluster;&lt;BR /&gt;var &amp;amp;vars;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code generally work good for others datasets. So, thats not the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasWarning"&gt;WARNING: 5876 observations in DATA= data set or BY group will not be included in the analysis due to missing values.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The following classes were excluded from the analysis due to missing or invalid values in VAR, FREQ or WEIGHT variables:&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;4&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;2&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;3&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: A total of 5876 of the 7357 observations in the DATA= data set were excluded (frequency sum = 1481).&lt;/DIV&gt;&lt;DIV class="sasError focus-line"&gt;ERROR: At least 2 complete classes are required in DATA= data set or BY group.&lt;/DIV&gt;&lt;DIV class="sasError focus-line"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError focus-line"&gt;I just would like to ignore that dataset, but I dont know what is the condition to do it.&lt;/DIV&gt;&lt;DIV class="sasError focus-line"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError focus-line"&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Oct 2016 01:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DISCRIM-ERROR/m-p/307538#M65887</guid>
      <dc:creator>mariange8282</dc:creator>
      <dc:date>2016-10-27T01:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DISCRIM ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DISCRIM-ERROR/m-p/307553#M65894</link>
      <description>&lt;P&gt;I would try counting the non empty classes with something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select count(distinct cluster) into :nClass
from clust
where nmiss(%sysfunc(translate(&amp;amp;var,%str(,),%str( ))))=0;

%if &amp;amp;nClass &amp;gt; 1 %then %do;
proc discrim...
%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(untested)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 03:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DISCRIM-ERROR/m-p/307553#M65894</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-10-27T03:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DISCRIM ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DISCRIM-ERROR/m-p/307571#M65904</link>
      <description>You just safe my thesis.&lt;BR /&gt;&lt;BR /&gt;Thank you so much</description>
      <pubDate>Thu, 27 Oct 2016 06:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DISCRIM-ERROR/m-p/307571#M65904</guid>
      <dc:creator>mariange8282</dc:creator>
      <dc:date>2016-10-27T06:38:43Z</dc:date>
    </item>
  </channel>
</rss>

