<?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: P value and T value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/P-value-and-T-value/m-p/622794#M183229</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oh my gosh. Yes! That was it. Thank you. I can't believe i overlooked that.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 17:31:52 GMT</pubDate>
    <dc:creator>Joliek44</dc:creator>
    <dc:date>2020-02-06T17:31:52Z</dc:date>
    <item>
      <title>P value and T value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/P-value-and-T-value/m-p/622607#M183163</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get p value and t values for given data. Every time I try to run my data, keeps giving me ERROR 22-322: Syntax error, expecting one of the following:&amp;nbsp; !, !!, &amp;amp;, *, **, +, -, /, ;, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,&lt;BR /&gt;NOTIN, OR, ^=, |, ||, ~=.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My SAS code is below. Any help would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data A1;&lt;BR /&gt;n = 12;&lt;BR /&gt;mu0 = 241;&lt;BR /&gt;xbar = 235;&lt;BR /&gt;sd = 12.5;&lt;BR /&gt;se = sd/sqrt(n);&lt;BR /&gt;df = n-1&lt;BR /&gt;tval = (xbar-mu0)/se;&lt;BR /&gt;pval = (1-cdf('T',abs(tval),df))*2;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=A1;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 04:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/P-value-and-T-value/m-p/622607#M183163</guid>
      <dc:creator>Joliek44</dc:creator>
      <dc:date>2020-02-06T04:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: P value and T value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/P-value-and-T-value/m-p/622618#M183165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308437"&gt;@Joliek44&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it seems that you have a missing semi-colon at the end of the following statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;df = n-1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 07:15:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/P-value-and-T-value/m-p/622618#M183165</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-06T07:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: P value and T value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/P-value-and-T-value/m-p/622794#M183229</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oh my gosh. Yes! That was it. Thank you. I can't believe i overlooked that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 17:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/P-value-and-T-value/m-p/622794#M183229</guid>
      <dc:creator>Joliek44</dc:creator>
      <dc:date>2020-02-06T17:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: P value and T value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/P-value-and-T-value/m-p/622849#M183241</link>
      <description>&lt;P&gt;And why we indicate that with error messages you should post the LOG of the whole proc or data step that included the error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;462  data A1;
463  n = 12;
464  mu0 = 241;
465  xbar = 235;
466  sd = 12.5;
467  se = sd/sqrt(n);
468  df = n-1
469  tval = (xbar-mu0)/se;
     ----
     22
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, ;, &amp;lt;, &amp;lt;=,
              &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=,
              |, ||, ~=.

470  pval = (1-cdf('T',abs(tval),df))*2;
471  run;
&lt;/PRE&gt;
&lt;P&gt;The underscores appearing under the first element of the line means indicates that the previous line is expected to be continued and what you have doesn't fit in the possible syntax. So look to the previous line.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 19:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/P-value-and-T-value/m-p/622849#M183241</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-06T19:38:38Z</dc:date>
    </item>
  </channel>
</rss>

