<?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 ttest in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508132#M72891</link>
    <description>&lt;P&gt;this link may assist in your question&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/164865"&gt;@GeetVish&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;A title="Proc TTest" href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_ttest_sect002.htm" target="_self"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_ttest_sect002.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Oct 2018 16:52:43 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2018-10-28T16:52:43Z</dc:date>
    <item>
      <title>proc ttest</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508120#M72888</link>
      <description>&lt;P&gt;PROC TTEST DATA = HEART;&lt;/P&gt;&lt;P&gt;CLASS WEIGHT_STATUS;&lt;/P&gt;&lt;P&gt;VAR CHOLESTROL;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp; i AM GETTING AN ERROR SAYING CLASS HAS MORE THAN 2 LEVELS. i AM VERY NEW TO PROC TTEST, ANOVA , GLM ETC. i WAS PRACTICING IT AND FOUND THIS ERROR. i ACTUALLY CHECKED FOR MISSING VALUES TOO. CAN YOU PPLEASE GUIDE&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 14:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508120#M72888</guid>
      <dc:creator>GeetVish</dc:creator>
      <dc:date>2018-10-28T14:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc ttest</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508121#M72889</link>
      <description>&lt;P&gt;If you are getting an error that says you have more than two levels, then the conclusion is obvious, your data used in PROC TTEST has more than two levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to examine the data set you are using, and you will see that there are more than two levels for the variable WEIGHT_STATUS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please DO NOT TYPE YOUR ENTIRE MESSAGE IN ALL CAPITALS. Use proper English mixed case. Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 15:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508121#M72889</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-10-28T15:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc ttest</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508122#M72890</link>
      <description>&lt;P&gt;ok thanks , i am very new to this blog too. Thanks anyways .I will check.&lt;/P&gt;&lt;P&gt;Can you tell me how to check the levels? what is level?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 15:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508122#M72890</guid>
      <dc:creator>GeetVish</dc:creator>
      <dc:date>2018-10-28T15:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc ttest</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508132#M72891</link>
      <description>&lt;P&gt;this link may assist in your question&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/164865"&gt;@GeetVish&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;A title="Proc TTest" href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_ttest_sect002.htm" target="_self"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_ttest_sect002.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 16:52:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508132#M72891</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-10-28T16:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc ttest</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508142#M72892</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/164865"&gt;@GeetVish&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc ttest data = sashelp.heart;
where weight_status in ('Normal', 'Overweight');
class weight_status;
var cholesterol;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I restricted &lt;FONT face="courier new,courier"&gt;weight_status&lt;/FONT&gt; to those two levels which seemed most&amp;nbsp;interesting to me in view of the results of the PROC FREQ step below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sashelp.heart;
tables weight_status;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 18:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508142#M72892</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-10-28T18:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc ttest</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508143#M72893</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/164865"&gt;@GeetVish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;ok thanks , i am very new to this blog too. Thanks anyways .I will check.&lt;/P&gt;
&lt;P&gt;Can you tell me how to check the levels? what is level?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you don't know what a level is, how can you even consider doing a T-test? That's what a t-test does, it compares the means of two different levels (conditions, settings, &lt;EM&gt;etc&lt;/EM&gt;.) of a variable (in this case WEIGHT_STATUS) in your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check the levels in any number of ways; by doing a PROC PRINT or a PROC FREQ on the variable WEIGHT_STATUS. It is also a very good idea to learn how to view your data to debug problems by viewing your data using the &lt;A href="https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=n1otloofcbwkpnn1sfkrhh9zjl74.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;viewtable feature&lt;/A&gt; in SAS.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 18:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-ttest/m-p/508143#M72893</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-10-28T18:32:30Z</dc:date>
    </item>
  </channel>
</rss>

