<?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: dataset errors - numeric / Discriminant Analysis in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/dataset-errors-numeric-Discriminant-Analysis/m-p/697491#M213158</link>
    <description>I sloved it by myself</description>
    <pubDate>Mon, 09 Nov 2020 01:16:51 GMT</pubDate>
    <dc:creator>Lwen</dc:creator>
    <dc:date>2020-11-09T01:16:51Z</dc:date>
    <item>
      <title>dataset errors - numeric / Discriminant Analysis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dataset-errors-numeric-Discriminant-Analysis/m-p/697488#M213156</link>
      <description>&lt;P&gt;I want to do&amp;nbsp;&lt;SPAN&gt;Discriminant Analysis by using SAS. But there is something wrong in my data set after I transfered the character data into numeric data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;At first, the dataset were character, so my first step was to tranform it into numeric data, by using following data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;【&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data newalcohol;&lt;BR /&gt;set alcohol(rename=(Meoh=old1 Acet=old2 Bu1=old3 Mepr=old4 Acal=old5 Lnpr01=old6));&lt;BR /&gt;Meoh = input (old1,best5.);&lt;BR /&gt;Acet= input (old2,best5.);&lt;BR /&gt;Bu1 = input (old3,best5.);&lt;BR /&gt;Mepr = input (old4,best5.);&lt;BR /&gt;Acal = input (old5,best5.);&lt;BR /&gt;Lnpr01 = input (old,best5.);&lt;BR /&gt;drop old1 old2 old3 old4 old5 old6;&lt;BR /&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;】&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And then, I used the following data to do the test:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;【title'Discriminant Analysis of Alcohol';&lt;BR /&gt;title2'Using Discriminant Function';&lt;BR /&gt;proc discrim data = newalcohol outstat=newalcohol&lt;BR /&gt;wcov pcov method = normal pool = test&lt;BR /&gt;distance anova manova listerr crosslisterr;&lt;BR /&gt;class type;&lt;BR /&gt;var Meoh Acet Bu1 Mepr Acal Lnpr01;&lt;BR /&gt;run;】&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, the warnings showed up here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;【&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="sasWarning"&gt;WARNING: 77 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="sasError"&gt;ERROR: At least 2 complete observations are required in DATA= data set or BY group.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 77 observations read from the data set WORK.NEWALCOHOL.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The data set WORK.NEWALCOHOL may be incomplete. When this step was stopped there were 0 observations and 9 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Data set WORK.NEWALCOHOL was not replaced because this step was stopped.&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;】&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I believe there must be something wrong within my dataset, but I didn't know how to fix it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anyone help me? Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 00:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dataset-errors-numeric-Discriminant-Analysis/m-p/697488#M213156</guid>
      <dc:creator>Lwen</dc:creator>
      <dc:date>2020-11-09T00:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: dataset errors - numeric / Discriminant Analysis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dataset-errors-numeric-Discriminant-Analysis/m-p/697491#M213158</link>
      <description>I sloved it by myself</description>
      <pubDate>Mon, 09 Nov 2020 01:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dataset-errors-numeric-Discriminant-Analysis/m-p/697491#M213158</guid>
      <dc:creator>Lwen</dc:creator>
      <dc:date>2020-11-09T01:16:51Z</dc:date>
    </item>
  </channel>
</rss>

