<?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: ERROR for proc ttest in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-for-proc-ttest/m-p/396479#M95725</link>
    <description>&lt;P&gt;Run proc print and proc contents on your data set. &amp;nbsp;Look at the results. Is it a TYPE=SUMMARY data set (or some other special type)? &amp;nbsp;Does it have the right stuff ? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=sashelp.class;
   var age;
   class sex;
   output out=m;
run;   

proc print; run;
proc contents varnum;  run;

proc ttest data=m;
var age;
class sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 16 Sep 2017 18:17:54 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-09-16T18:17:54Z</dc:date>
    <item>
      <title>ERROR for proc ttest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-for-proc-ttest/m-p/396462#M95718</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a question for&amp;nbsp;&amp;nbsp;my t-test code listed below. After I ran my code, I got an error message as below. I checked the variable flag for class statement. It is 2-category variable. Could anyone give me some hint? Thanks so much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc ttest data=mydata;&lt;/P&gt;
&lt;P&gt;var score;&lt;/P&gt;
&lt;P&gt;class flag;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: N, MEAN, or STD value occurs twice in class or by group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 19:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-for-proc-ttest/m-p/396462#M95718</guid>
      <dc:creator>michellel</dc:creator>
      <dc:date>2017-09-15T19:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR for proc ttest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-for-proc-ttest/m-p/396479#M95725</link>
      <description>&lt;P&gt;Run proc print and proc contents on your data set. &amp;nbsp;Look at the results. Is it a TYPE=SUMMARY data set (or some other special type)? &amp;nbsp;Does it have the right stuff ? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=sashelp.class;
   var age;
   class sex;
   output out=m;
run;   

proc print; run;
proc contents varnum;  run;

proc ttest data=m;
var age;
class sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Sep 2017 18:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-for-proc-ttest/m-p/396479#M95725</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-09-16T18:17:54Z</dc:date>
    </item>
  </channel>
</rss>

