<?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: How does proc means calculate its confidence limits? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/676533#M79327</link>
    <description>That article pertains to V6 which is around my age....</description>
    <pubDate>Thu, 13 Aug 2020 16:14:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-08-13T16:14:02Z</dc:date>
    <item>
      <title>How does proc means calculate its confidence limits?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/675649#M79321</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on graphing my proc means data points but the confidence limits that my proc means is calculating doesn't seem to be right according to my calculations?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calculating the confidence limit as MEAN +/- 1.96*Standard Error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone could elucidate how SAS calculates the "LCLM" and "UCLM" and how it is different from my calculation, that would be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=wide_merged_file_sans_pooled n mean stddev stderr lclm uclm median min max STACKODS;
var itac_fuvisit_f0 itac_fuvisit_f1 itac_fuvisit_f2 itac_fuvisit_f3 itac_fuvisit_f5
	itac_fuvisit_f6 itac_fuvisit_f7 itac_fuvisit_f8; 
	ods output summary = summaryStats; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Aug 2020 16:16:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/675649#M79321</guid>
      <dc:creator>cdunlea</dc:creator>
      <dc:date>2020-08-10T16:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: How does proc means calculate its confidence limits?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/675678#M79322</link>
      <description>&lt;P&gt;The formulas are here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0v0y1on1hbxukn0zqgsp5ky8hc0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0v0y1on1hbxukn0zqgsp5ky8hc0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS uses the t-distribution, not normal so it varies very slightly based on the number of observations. If you only have a few observations you'll see differences from the z-score calculations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example that illustrates the issue. I would have expected it to be closer as well.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=sashelp.class N MEAN STDDEV STDERR UCLM LCLM alpha=0.05 STACKODS;
var weight height;
ods output summary = summaryStats;
run;

data check_calcs;
set summaryStats;

*19 for the number of observations;
p=quantile('T', .975, 19);    

manual_UCLM = mean + p*stderr;
manual_LCLM = mean - p*stderr;

diff_UCLM = UCLM - manual_UCLM;
diff_LCLM = LCLM - manual_LCLM;

format diff: 8.4;
run;

proc print data=check_calcs;
run;


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Aug 2020 17:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/675678#M79322</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-10T17:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How does proc means calculate its confidence limits?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/675681#M79323</link>
      <description>&lt;P&gt;HI:&lt;BR /&gt;Suggest you refer to the PROC MEANS doc: &lt;A href="https://go.documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1qnc9bddfvhzqn105kqitnf29cp.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1s22hbbyw8x52n13u68ysifgyfx" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1qnc9bddfvhzqn105kqitnf29cp.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1s22hbbyw8x52n13u68ysifgyfx&lt;/A&gt; you can control the ALPHA using the ALPHA= option. The default ALPHA is .05, giving a confidence limit of 95%.&lt;BR /&gt;&lt;BR /&gt;The doc says: &lt;BR /&gt;" ALPHA=value ... specifies the confidence level to compute the confidence limits for the mean. The percentage for the confidence limits is (1−value)×100. An example is (ALPHA=.05 results in a 95% confidence limit)."&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 17:14:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/675681#M79323</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-08-10T17:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: How does proc means calculate its confidence limits?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/675691#M79324</link>
      <description>&lt;P&gt;You might also find this older article helpful: &lt;A href="https://www.lexjansen.com/pharmasug/2003/Posters/P048.pdf" target="_self"&gt;Confidence in the 95% Confidence Interval of Mean&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 17:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/675691#M79324</guid>
      <dc:creator>Nicole_Fox</dc:creator>
      <dc:date>2020-08-10T17:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: How does proc means calculate its confidence limits?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/676533#M79327</link>
      <description>That article pertains to V6 which is around my age....</description>
      <pubDate>Thu, 13 Aug 2020 16:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/676533#M79327</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-13T16:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does proc means calculate its confidence limits?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/676563#M79328</link>
      <description>I like the "comparing various outputs to see what you get" approach.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 13 Aug 2020 17:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-does-proc-means-calculate-its-confidence-limits/m-p/676563#M79328</guid>
      <dc:creator>Nicole_Fox</dc:creator>
      <dc:date>2020-08-13T17:41:22Z</dc:date>
    </item>
  </channel>
</rss>

