<?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 How to perform a right tailed test in SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-a-right-tailed-test-in-SAS/m-p/611933#M178465</link>
    <description>&lt;P&gt;Hello! I am trying to perform a right tailed test on a set of data. Its for average gpa of 700 students.&lt;/P&gt;
&lt;P&gt;Here is my code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname soapy '\\Client\D$\SAS\Data';
data FINAL;
infile '\\Client\D$\SAS\Data\finaldata.txt';
input ID GPA HSRANK ACT YEAR;
run;
proc means data= FINAL n mean stderr alpha=0.02 median p50 clm maxdec=2;
var GPA;
run;
proc univariate data=FINAL alpha=0.02 cibasic mu0=3.03;
var GPA;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get a confidence interval for the mean which is [2.92, 3.03]. Then I tested for Mu0=3.03 since SAS can't do Mu0&amp;gt;3.03. from the proc univariate command I get the test statistic -2.20461 with an associated p-value 0.0278. (alpha=0.02). These results are for a 2 tailed test with the alternative hypothesis Ha: mean does not equal 3.03. How to get the p-value for Ha: Mu&amp;gt;3.03? Can I get SAS to print it?&lt;/P&gt;
&lt;P&gt;Any help would be appreciated! I've attached the text file with the data if it helps...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2019 01:14:40 GMT</pubDate>
    <dc:creator>valarievil</dc:creator>
    <dc:date>2019-12-16T01:14:40Z</dc:date>
    <item>
      <title>How to perform a right tailed test in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-a-right-tailed-test-in-SAS/m-p/611933#M178465</link>
      <description>&lt;P&gt;Hello! I am trying to perform a right tailed test on a set of data. Its for average gpa of 700 students.&lt;/P&gt;
&lt;P&gt;Here is my code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname soapy '\\Client\D$\SAS\Data';
data FINAL;
infile '\\Client\D$\SAS\Data\finaldata.txt';
input ID GPA HSRANK ACT YEAR;
run;
proc means data= FINAL n mean stderr alpha=0.02 median p50 clm maxdec=2;
var GPA;
run;
proc univariate data=FINAL alpha=0.02 cibasic mu0=3.03;
var GPA;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get a confidence interval for the mean which is [2.92, 3.03]. Then I tested for Mu0=3.03 since SAS can't do Mu0&amp;gt;3.03. from the proc univariate command I get the test statistic -2.20461 with an associated p-value 0.0278. (alpha=0.02). These results are for a 2 tailed test with the alternative hypothesis Ha: mean does not equal 3.03. How to get the p-value for Ha: Mu&amp;gt;3.03? Can I get SAS to print it?&lt;/P&gt;
&lt;P&gt;Any help would be appreciated! I've attached the text file with the data if it helps...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 01:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-a-right-tailed-test-in-SAS/m-p/611933#M178465</guid>
      <dc:creator>valarievil</dc:creator>
      <dc:date>2019-12-16T01:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform a right tailed test in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-a-right-tailed-test-in-SAS/m-p/611938#M178466</link>
      <description>&lt;P&gt;So you want a 98% 1-sided confidence interval, instead of a 98% 2-sided confidence interval which is what SAS provides by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A 98% 1-sided confidence interval has 2% of the distribution in the right tail; a 98% 2-sided confidence interval has 1% of the distribution in the right tail and 1% in the left tail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So to get 2% in the right tail, you ask SAS for a 96% confidence interval, which produces a test with 2% in the right tail and 2% in the left tail. Then you ignore the left tail, and only use the right tail.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 02:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-a-right-tailed-test-in-SAS/m-p/611938#M178466</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-12-16T02:21:54Z</dc:date>
    </item>
  </channel>
</rss>

