<?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: data tinv to get critical value doesn't work in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-tinv-to-get-critical-value-doesn-t-work/m-p/590564#M169040</link>
    <description>&lt;P&gt;You accidentally put a semicolon instead of a comma.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compare the two lines of code and notice the difference. And note where SAS has flagged.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/287341"&gt;@Lacona&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hey all,&lt;BR /&gt;&lt;BR /&gt;My dataset consists of two variables, one categorical (survived/perished) one numerical (lengths of bone).&lt;BR /&gt;n (perished) = 24, n(survived) = 35, alpha=0.01 (for 99%CL).&lt;BR /&gt;It is asked for the critical value of survived and critical value of perished. The critical value is t (DF, alpha/2).&lt;BR /&gt;Table give me: t(23,0.005) = 2.8, t(34,0.005)~2.72&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Now I tried to get the critical values in SAS and it worked out perfectly for the perished ones:&lt;/P&gt;
&lt;PRE&gt;data perished;
set humerus;
if status='Perished';
run;

data perished;
tp=tinv (0.995,23);
run;

proc print data=perished;
run;&lt;/PRE&gt;
&lt;P&gt;However, it didn't work out for the survived group and I can't figure out, why:&lt;/P&gt;
&lt;PRE&gt;data survived;
set humerus;
if status='Survived';
run;

data survived;
ts=tinv (0.995&lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/FONT&gt;34);
run;

proc print data=survived;
run;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt;73         data survived;
 74         ts=tinv (0.995;34);
                          _
                          79
               ____        __
               71          180
 ERROR 79-322: Expecting a ).
 
 ERROR 71-185: The TINV function call does not have enough arguments.
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 75         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set WORK.SURVIVED may be incomplete.  When this step was stopped there were 0 observations and 1 variables.
 WARNING: Datei WORK.SURVIVED wurde nicht ersetzt, da da dieser Schritt angehalten wurde.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.01 seconds
       cpu time            0.00 seconds
             &lt;/PRE&gt;
&lt;P&gt;Any ideas?!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Sep 2019 02:05:37 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-09-21T02:05:37Z</dc:date>
    <item>
      <title>data tinv to get critical value doesn't work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-tinv-to-get-critical-value-doesn-t-work/m-p/590563#M169039</link>
      <description>&lt;P&gt;Hey all,&lt;BR /&gt;&lt;BR /&gt;My dataset consists of two variables, one categorical (survived/perished) one numerical (lengths of bone).&lt;BR /&gt;n (perished) = 24, n(survived) = 35, alpha=0.01 (for 99%CL).&lt;BR /&gt;It is asked for the critical value of survived and critical value of perished. The critical value is t (DF, alpha/2).&lt;BR /&gt;Table give me: t(23,0.005) = 2.8, t(34,0.005)~2.72&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now I tried to get the critical values in SAS and it worked out perfectly for the perished ones:&lt;/P&gt;&lt;PRE&gt;data perished;
set humerus;
if status='Perished';
run;

data perished;
tp=tinv (0.995,23);
run;

proc print data=perished;
run;&lt;/PRE&gt;&lt;P&gt;However, it didn't work out for the survived group and I can't figure out, why:&lt;/P&gt;&lt;PRE&gt;data survived;
set humerus;
if status='Survived';
run;

data survived;
ts=tinv (0.995;34);
run;

proc print data=survived;
run;&lt;/PRE&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;PRE&gt;73         data survived;
 74         ts=tinv (0.995;34);
                          _
                          79
               ____        __
               71          180
 ERROR 79-322: Expecting a ).
 
 ERROR 71-185: The TINV function call does not have enough arguments.
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 75         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set WORK.SURVIVED may be incomplete.  When this step was stopped there were 0 observations and 1 variables.
 WARNING: Datei WORK.SURVIVED wurde nicht ersetzt, da da dieser Schritt angehalten wurde.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.01 seconds
       cpu time            0.00 seconds
             &lt;/PRE&gt;&lt;P&gt;Any ideas?!&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2019 00:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-tinv-to-get-critical-value-doesn-t-work/m-p/590563#M169039</guid>
      <dc:creator>Lacona</dc:creator>
      <dc:date>2019-09-21T00:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: data tinv to get critical value doesn't work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-tinv-to-get-critical-value-doesn-t-work/m-p/590564#M169040</link>
      <description>&lt;P&gt;You accidentally put a semicolon instead of a comma.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compare the two lines of code and notice the difference. And note where SAS has flagged.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/287341"&gt;@Lacona&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hey all,&lt;BR /&gt;&lt;BR /&gt;My dataset consists of two variables, one categorical (survived/perished) one numerical (lengths of bone).&lt;BR /&gt;n (perished) = 24, n(survived) = 35, alpha=0.01 (for 99%CL).&lt;BR /&gt;It is asked for the critical value of survived and critical value of perished. The critical value is t (DF, alpha/2).&lt;BR /&gt;Table give me: t(23,0.005) = 2.8, t(34,0.005)~2.72&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Now I tried to get the critical values in SAS and it worked out perfectly for the perished ones:&lt;/P&gt;
&lt;PRE&gt;data perished;
set humerus;
if status='Perished';
run;

data perished;
tp=tinv (0.995,23);
run;

proc print data=perished;
run;&lt;/PRE&gt;
&lt;P&gt;However, it didn't work out for the survived group and I can't figure out, why:&lt;/P&gt;
&lt;PRE&gt;data survived;
set humerus;
if status='Survived';
run;

data survived;
ts=tinv (0.995&lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/FONT&gt;34);
run;

proc print data=survived;
run;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt;73         data survived;
 74         ts=tinv (0.995;34);
                          _
                          79
               ____        __
               71          180
 ERROR 79-322: Expecting a ).
 
 ERROR 71-185: The TINV function call does not have enough arguments.
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 75         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set WORK.SURVIVED may be incomplete.  When this step was stopped there were 0 observations and 1 variables.
 WARNING: Datei WORK.SURVIVED wurde nicht ersetzt, da da dieser Schritt angehalten wurde.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.01 seconds
       cpu time            0.00 seconds
             &lt;/PRE&gt;
&lt;P&gt;Any ideas?!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2019 02:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-tinv-to-get-critical-value-doesn-t-work/m-p/590564#M169040</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-09-21T02:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: data tinv to get critical value doesn't work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-tinv-to-get-critical-value-doesn-t-work/m-p/590685#M169106</link>
      <description>&lt;P&gt;Oh no....&amp;nbsp;&lt;BR /&gt;sometimes it is so simple to solve a big problem!&lt;BR /&gt;&lt;BR /&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2019 01:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-tinv-to-get-critical-value-doesn-t-work/m-p/590685#M169106</guid>
      <dc:creator>Lacona</dc:creator>
      <dc:date>2019-09-22T01:59:33Z</dc:date>
    </item>
  </channel>
</rss>

