<?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 Help with fixing this for finding the 95% CI for the mean. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-fixing-this-for-finding-the-95-CI-for-the-mean/m-p/960863#M48120</link>
    <description>&lt;P&gt;Options NoNumber NoDate;&lt;BR /&gt;Data assignment4number6;&lt;BR /&gt;xbar = 53.87;&lt;BR /&gt;alpha = 0.05;&lt;BR /&gt;n=50;&lt;BR /&gt;s2 = 97.8121;&lt;BR /&gt;Proc Means NoPrint;&lt;BR /&gt;Output Out=Stat mean=xbar Var=s2 n=n;&lt;/P&gt;&lt;P&gt;Data assignment4number6;&lt;BR /&gt;t = tinv(1-alpha/2, (n-1));&lt;BR /&gt;sep = Sqrt(s2/n);&lt;BR /&gt;L1 = xbar - t*sep;&lt;BR /&gt;L2 = xbar + t*sep;&lt;BR /&gt;run;&lt;BR /&gt;Proc Print; Var t alpha sep L1 L2;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to modify a program to get what I have here by hand.&amp;nbsp; Any help is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_9116.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105153i5339300239FC075A/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_9116.JPG" alt="IMG_9116.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2025 17:14:26 GMT</pubDate>
    <dc:creator>KB131619</dc:creator>
    <dc:date>2025-03-04T17:14:26Z</dc:date>
    <item>
      <title>Help with fixing this for finding the 95% CI for the mean.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-fixing-this-for-finding-the-95-CI-for-the-mean/m-p/960863#M48120</link>
      <description>&lt;P&gt;Options NoNumber NoDate;&lt;BR /&gt;Data assignment4number6;&lt;BR /&gt;xbar = 53.87;&lt;BR /&gt;alpha = 0.05;&lt;BR /&gt;n=50;&lt;BR /&gt;s2 = 97.8121;&lt;BR /&gt;Proc Means NoPrint;&lt;BR /&gt;Output Out=Stat mean=xbar Var=s2 n=n;&lt;/P&gt;&lt;P&gt;Data assignment4number6;&lt;BR /&gt;t = tinv(1-alpha/2, (n-1));&lt;BR /&gt;sep = Sqrt(s2/n);&lt;BR /&gt;L1 = xbar - t*sep;&lt;BR /&gt;L2 = xbar + t*sep;&lt;BR /&gt;run;&lt;BR /&gt;Proc Print; Var t alpha sep L1 L2;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to modify a program to get what I have here by hand.&amp;nbsp; Any help is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_9116.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105153i5339300239FC075A/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_9116.JPG" alt="IMG_9116.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 17:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-fixing-this-for-finding-the-95-CI-for-the-mean/m-p/960863#M48120</guid>
      <dc:creator>KB131619</dc:creator>
      <dc:date>2025-03-04T17:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with fixing this for finding the 95% CI for the mean.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-fixing-this-for-finding-the-95-CI-for-the-mean/m-p/960875#M48121</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Options NoNumber NoDate;
Data assignment4number6;
xbar = 53.87;
alpha = 0.05;
n = 50;
s2 = 97.8121;
t = tinv(1-alpha/2, (n-1));
*t = 2.010;
sep = sqrt(s2/n);
L1 = xbar - t*sep;
L2 = xbar + t*sep;
format t alpha sep L1 L2 14.7;
run;
Proc Print data=assignment4number6; 
 Var t alpha sep L1 L2;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 18:51:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-fixing-this-for-finding-the-95-CI-for-the-mean/m-p/960875#M48121</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2025-03-04T18:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with fixing this for finding the 95% CI for the mean.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-fixing-this-for-finding-the-95-CI-for-the-mean/m-p/960899#M48122</link>
      <description>&lt;PRE&gt;Options NoNumber NoDate;
Data assignment4number6;
xbar = 53.87;
alpha = 0.05;
var = 97.8121;

n = 50;
&lt;STRONG&gt;t = quantile('t',1-alpha/2, (n-1));&lt;/STRONG&gt;
/*putlog t=;*/
stderr = sqrt(var/n);
L1 = xbar - t*stderr;
L2 = xbar + t*stderr;
output;


n = 100;
&lt;STRONG&gt;t = quantile('t',1-alpha/2, (n-1));&lt;/STRONG&gt;
/*putlog t=;*/
stderr = sqrt(var/n);
L1 = xbar - t*stderr;
L2 = xbar + t*stderr;
output;

format t alpha stderr L1 L2 14.7;
run;
Proc Print data=assignment4number6; 
 Var n t alpha stderr L1 L2;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1741138137683.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105157i39BFAE12EE37712D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1741138137683.png" alt="Ksharp_0-1741138137683.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 01:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-fixing-this-for-finding-the-95-CI-for-the-mean/m-p/960899#M48122</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-03-05T01:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with fixing this for finding the 95% CI for the mean.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-fixing-this-for-finding-the-95-CI-for-the-mean/m-p/960937#M48132</link>
      <description>&lt;UL&gt;
&lt;LI&gt;The &lt;STRONG&gt;TINV function&lt;/STRONG&gt; returns the p-th quantile from the Student's t distribution with degrees of freedom df and a noncentrality parameter nc. The probability that an observation from a t distribution is less than or equal to the returned quantile is p.&lt;BR /&gt;TINV accepts a noninteger degree of freedom parameter df. If the optional parameter nc is not specified or is 0, the quantile from the central t distribution is returned.&lt;/LI&gt;
&lt;LI&gt;The &lt;STRONG&gt;QUANTILE function&lt;/STRONG&gt; returns the quantile from a distribution that you specify. The QUANTILE function is the inverse of the CDF function.&lt;BR /&gt;You must also specify a degree of freedom parameter df and optional noncentrality parameter nc.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I think the quantile feature is more recent and obviously more general (since you can put "all" distributions in it).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 12:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-fixing-this-for-finding-the-95-CI-for-the-mean/m-p/960937#M48132</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2025-03-05T12:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with fixing this for finding the 95% CI for the mean.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-fixing-this-for-finding-the-95-CI-for-the-mean/m-p/961026#M48143</link>
      <description>Yeah. TINV function is obsoleted , now should use  QUANTILE function .</description>
      <pubDate>Thu, 06 Mar 2025 01:33:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-fixing-this-for-finding-the-95-CI-for-the-mean/m-p/961026#M48143</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-03-06T01:33:05Z</dc:date>
    </item>
  </channel>
</rss>

