<?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: TTEST in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/TTEST/m-p/604943#M8288</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278486"&gt;@gauravv0103&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just wanted to understand what do we mean regarding levels over here, It is a &lt;FONT color="#FF0000"&gt;generic numeric&lt;/FONT&gt; variable we are getting the solution we when we run it through either excel data analysis or use Minitab. Then why it is not possible with Proc ttest.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Numeric variables are almost never placed in CLASS statements in PROC TTEST. The CLASS statement should contain the name of a category variable that contains two levels. "Generic numeric" variables probably ought to go in the VAR statement.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2019 11:54:42 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-11-18T11:54:42Z</dc:date>
    <item>
      <title>TTEST</title>
      <link>https://communities.sas.com/t5/SAS-Studio/TTEST/m-p/604786#M8279</link>
      <description>&lt;P&gt;Please find attached a file (XrA 16-05.xls) on which I have tried 2 sample ttest with the below mentioned code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods noproctitle;&lt;BR /&gt;ods graphics / imagemap=on;&lt;/P&gt;&lt;P&gt;/* t test */&lt;BR /&gt;proc ttest data=WORK.SYMPTOMS sides=2 h0=0 cochran plots(only&lt;BR /&gt;showh0)=(summaryPlot intervalPlot qqplot);&lt;BR /&gt;class Home;&lt;BR /&gt;var Outside;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For both the variables in the sheet if I choose it as class (as one by one case) the log shows&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: The CLASS variable has more than two levels.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also I am not getting the T value and p value, QQ plot etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can some one please help as I faced the same situation with another file as well.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2019 12:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/TTEST/m-p/604786#M8279</guid>
      <dc:creator>gauravv0103</dc:creator>
      <dc:date>2019-11-17T12:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: TTEST</title>
      <link>https://communities.sas.com/t5/SAS-Studio/TTEST/m-p/604787#M8280</link>
      <description>&lt;P&gt;Hello, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278486"&gt;@gauravv0103&lt;/a&gt; welcome to the SAS Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: The CLASS variable has more than two levels.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your CLASS variable named HOME has more than two levels, and so you cannot perform PROC TTEST on it. You need to use a variable that has exactly two levels (or perform your t-tests in PROC GLM).&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2019 12:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/TTEST/m-p/604787#M8280</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-17T12:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: TTEST</title>
      <link>https://communities.sas.com/t5/SAS-Studio/TTEST/m-p/604881#M8286</link>
      <description>&lt;P&gt;Thanks Mr. Miller for your input and suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wanted to understand what do we mean regarding levels over here, It is a generic numeric variable we are getting the solution we when we run it through either excel data analysis or use Minitab. Then why it is not possible with Proc ttest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request if you could throw light on it.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 06:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/TTEST/m-p/604881#M8286</guid>
      <dc:creator>gauravv0103</dc:creator>
      <dc:date>2019-11-18T06:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: TTEST</title>
      <link>https://communities.sas.com/t5/SAS-Studio/TTEST/m-p/604884#M8287</link>
      <description>&lt;P&gt;Mr. Miller, As advised by you I have used Proc GLM for the same but the results are not matching with excel data analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following procedure, please let me know if it is the right way to do it.&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc glm data=wives plot=diagnostics;&lt;BR /&gt;class Home;&lt;BR /&gt;model Outside = Home;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also attached is the outcome of GLM ( it is giving F Value) in PDF format and excel data analysis (It is giving T Value). How can we conclude that both results in same analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 06:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/TTEST/m-p/604884#M8287</guid>
      <dc:creator>gauravv0103</dc:creator>
      <dc:date>2019-11-18T06:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: TTEST</title>
      <link>https://communities.sas.com/t5/SAS-Studio/TTEST/m-p/604943#M8288</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278486"&gt;@gauravv0103&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just wanted to understand what do we mean regarding levels over here, It is a &lt;FONT color="#FF0000"&gt;generic numeric&lt;/FONT&gt; variable we are getting the solution we when we run it through either excel data analysis or use Minitab. Then why it is not possible with Proc ttest.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Numeric variables are almost never placed in CLASS statements in PROC TTEST. The CLASS statement should contain the name of a category variable that contains two levels. "Generic numeric" variables probably ought to go in the VAR statement.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 11:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/TTEST/m-p/604943#M8288</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-18T11:54:42Z</dc:date>
    </item>
  </channel>
</rss>

