<?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: Pooled standard deviation in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584540#M14196</link>
    <description>Thank you so much. I got it now.&lt;BR /&gt;So much happy to have such a supportive environment.&lt;BR /&gt;I have been struggling with this last couple of days, and no one could correctly answer my queries. Its the first time I am using SAS support community and genuinely delighted with the support.</description>
    <pubDate>Wed, 28 Aug 2019 12:58:03 GMT</pubDate>
    <dc:creator>debashree</dc:creator>
    <dc:date>2019-08-28T12:58:03Z</dc:date>
    <item>
      <title>Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584494#M14179</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I want to compute the pooled sigma (standard deviation) for the below-mentioned group:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Group&lt;/TD&gt;&lt;TD&gt;Count&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Mean&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Sigma&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;661.7&lt;/TD&gt;&lt;TD&gt;45.3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;18.06&lt;/TD&gt;&lt;TD&gt;1.64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;191.4&lt;/TD&gt;&lt;TD&gt;1.41&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;5.51&lt;/TD&gt;&lt;TD&gt;0.352&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;37.265&lt;/TD&gt;&lt;TD&gt;0.898&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have calculated it using the below-mentioned program in SAS. The result I am getting for pooled sigma in SAS is 20.2864.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I verified this pooled sigma value for the same dataset using Minitab and the Minitab output for pooled sigma is 20.2686 which is slightly different than the one I am getting in SAS using the below-mentioned PROC SQL program (got it from SAS help).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data Deba;&lt;BR /&gt;input group $ Count Mean Sigma;&lt;BR /&gt;datalines;&lt;BR /&gt;A 2 661.7 45.3&lt;BR /&gt;B 2 18.06 1.64&lt;BR /&gt;C 2 191.4 1.41&lt;BR /&gt;D 2 5.51 0.352&lt;BR /&gt;E 2 37.265 0.898&lt;BR /&gt;;&lt;BR /&gt;proc sql;&lt;/P&gt;&lt;P&gt;select *,sqrt(sum((count-1)*sigma**2) / (sum(count)-count(*))) as pool_sigma from Deba&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am wondering why the Minitab and SAS values are not matching? In MINITAB I am feeding the raw data which is giving me pooled sigma of 20.2686, whereas in SAS I am feeding the above-mentioned data group as I don't know the whole program in SAS to calculate the pooled sigma from my raw data. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could this be a reason for the difference in MINITAB and SAS results? OR Do I need to use a different formula for pooled sigma?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My raw data is below-&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Groups&lt;/TD&gt;&lt;TD&gt;Results&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;693.70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;629.70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;19.22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;16.90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;192.40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;190.40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;5.76&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;5.26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;36.63&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;37.90&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request if anyone could please help me with this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 10:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584494#M14179</guid>
      <dc:creator>debashree</dc:creator>
      <dc:date>2019-08-28T10:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584497#M14181</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286962"&gt;@debashree&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;I am wondering why the Minitab and SAS values are not matching? In MINITAB I am feeding the raw data which is giving me pooled sigma of 20.2686, whereas in SAS I am feeding the above-mentioned data group as I don't know the whole program in SAS to calculate the pooled sigma from my raw data. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could this be a reason for the difference in MINITAB and SAS results? OR Do I need to use a different formula for pooled sigma?&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;One computer has the data typed in, where the sigma has been truncated to two decimal places, while another computer actually computed the sigma and has 14 decimal places.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is just round-off error. So I would not expect them to match.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 10:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584497#M14181</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-28T10:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584499#M14182</link>
      <description>Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;. So, that confirms my doubt that this is the reason that the results are not matching.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But then is there a program in SAS so that I can calculate Pooled Sigma from my raw data itself in SAS?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not able to figure out how to calculate pooled sigma in SAS from raw data.&amp;nbsp;</description>
      <pubDate>Wed, 28 Aug 2019 11:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584499#M14182</guid>
      <dc:creator>debashree</dc:creator>
      <dc:date>2019-08-28T11:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584504#M14184</link>
      <description>&lt;P&gt;How did you calculate the group sigma in Minitab?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 11:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584504#M14184</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-28T11:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584513#M14185</link>
      <description>Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I calculated the individual group sigma in Minitab using ANOVA.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Minitab calculates the group sigma automatically and also generates a pooled sigma. An example in Minitab can be found from their link below.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.minitab.com/en-us/minitab/18/help-and-how-to/modeling-statistics/anova/how-to/one-way-anova/before-you-start/example/" target="_blank"&gt;https://support.minitab.com/en-us/minitab/18/help-and-how-to/modeling-statistics/anova/how-to/one-way-anova/before-you-start/example/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This is the exact way I am getting my group and pooled sigma in MINITAB.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;</description>
      <pubDate>Wed, 28 Aug 2019 11:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584513#M14185</guid>
      <dc:creator>debashree</dc:creator>
      <dc:date>2019-08-28T11:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584516#M14186</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286962"&gt;@debashree&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;. So, that confirms my doubt that this is the reason that the results are not matching.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But then is there a program in SAS so that I can calculate Pooled Sigma from my raw data itself in SAS?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not able to figure out how to calculate pooled sigma in SAS from raw data.&amp;nbsp;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The problem you are having is not SAS. The problem you are having is that the data is different between the two different softwares (SAS and Minitab)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MEANS/PROC SUMMARY and many other procedures will calculate a pooled standard deviation from any data.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 11:59:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584516#M14186</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-28T11:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584518#M14187</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; Yes, I agree with this.&lt;BR /&gt;&lt;BR /&gt;But I always use SAS for my data analysis and I am struggling to obtain a pooled standard deviation in SAS using my raw data.&lt;BR /&gt;&lt;BR /&gt;Will you please be able to share syntax for proc means/proc summary that can give pooled standard deviation in SAS using my raw data? I didn't come across any.&amp;nbsp;</description>
      <pubDate>Wed, 28 Aug 2019 12:07:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584518#M14187</guid>
      <dc:creator>debashree</dc:creator>
      <dc:date>2019-08-28T12:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584521#M14189</link>
      <description>I am looking for a procedure in SAS that can give me pooled standard deviation using my raw data.&lt;BR /&gt;Will you please be able to share any? I couldn't find anything in SAS.</description>
      <pubDate>Wed, 28 Aug 2019 12:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584521#M14189</guid>
      <dc:creator>debashree</dc:creator>
      <dc:date>2019-08-28T12:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584523#M14190</link>
      <description>&lt;P&gt;Since you use ANOVA in Minitab, let's do an ANOVA in SAS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
    input group $ results;
	cards;
A	693.70
A	629.70
B	19.22
B	16.90
C	192.40
C	190.40
D	5.76
D	5.26
E	36.63
E	37.90
;
run;

ods listing;
proc glm data=a;
	class group;
	model results=group;
run; quit;
ods listing close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This produces the following output.&lt;/P&gt;
&lt;PRE&gt;Source                      DF         Squares     Mean Square    F Value    Pr &amp;gt; F

Model                        4     618341.2342     154585.3085     376.37    &amp;lt;.0001

Error                        5       2053.6226        410.7245

Corrected Total              9     620394.8568


R-Square     Coeff Var      Root MSE    results Mean

0.996690      11.08741      20.26634        182.7870
&lt;/PRE&gt;
&lt;P&gt;The Root MSE of 20.26634 is the pooled standard deviation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584523#M14190</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-28T12:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584532#M14192</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286962"&gt;@debashree&lt;/a&gt;&amp;nbsp;(and BTW&amp;nbsp;welcome to the SAS Support Communities),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Possibly rounding errors are involved &lt;EM&gt;twice&lt;/EM&gt;: in the raw data &lt;EM&gt;and&lt;/EM&gt;, obviously, in dataset Deba with its rounded Sigma values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the raw data you get yet another slightly different value for the pooled standard deviation (the same as Paige Miller obtained with PROC GLM):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input group :$1. result;
cards;
A 693.70
A 629.70
B 19.22
B 16.90
C 192.40
C 190.40
D 5.76
D 5.26
E 36.63
E 37.90
;

proc sql;
create table stats as
select group, count(result) as count, mean(result) as mean, std(result) as sigma from have
group by group;

select sqrt(sum((count-1)*sigma**2) / (sum(count)-count(*))) as pool_sigma from stats;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&amp;nbsp;20.26634. Rounded to two decimals, i.e. the precision of the raw data, &lt;EM&gt;this already matches the Minitab result&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that for group D Sigma=0.5/sqrt(2)=0.35355..., which does not match the 0.35&lt;STRONG&gt;2&lt;/STRONG&gt; from dataset Deba. However, the exact &lt;FONT face="courier new,courier"&gt;result&lt;/FONT&gt; values for that group could be (almost) as extreme as 5.755 and 5.265, respectively, without changing their rounded values, leading to Sigma=0.49/sqrt(2)=0.34648... So, 0.352 (if it's not just a typo) is well within the possible range due to rounding errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similarly, other&amp;nbsp;&lt;FONT face="courier new,courier"&gt;result&lt;/FONT&gt; values can be modified without changing their rounded values. Here is an example (with modifications only in groups A and D), which yields the &lt;EM&gt;same&lt;/EM&gt; rounded values for Mean and Sigma as given in dataset Deba &lt;EM&gt;and&lt;/EM&gt; the pooled standard deviation 20.2686 as you computed with Minitab (use the above PROC SQL step to confirm):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input group :$1. result;
cards;
A 693.70358
A 629.69642
B 19.22
B 16.90
C 192.40
C 190.40
D 5.759
D 5.261
E 36.63
E 37.90
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584532#M14192</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-08-28T12:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584535#M14194</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286962"&gt;@debashree&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you go by middle school algebra, here is the simple Data Step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data = have out = have1;
   by Groups;
run;

data _null_;
   do n = 1 by 1 until(last.Groups);
      set have1 end = last;
      by Groups;
      Tsum + Results; *Total Group Sum;
      TSS  + (Results * Results); *Total Group SS;
      if last.Groups then do;
         Css = TSS - Tsum * Tsum / n; * Corrected SS;
         Sigma = sqrt(Css /(n-1));    * Sigma for Group;
         put Sigma =;
         call missing(Tsum,TSS);
         TCSS + CSS; * Total Corrected SS;
         TDF + (n-1); * Total DF;
      end;
   end;
   if last then do;
      Sigma = sqrt(TCSS/TDF); * Pooled Sigma;
      put TCSS = TDF = Sigma =;
   end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This proves that the pooled Sigma is&amp;nbsp;&lt;/P&gt;
&lt;PRE id="pre_sasLog_2" class="sasLog"&gt;20.266339827&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584535#M14194</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2019-08-28T12:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584537#M14195</link>
      <description>&lt;P&gt;For completeness, I mentioned that you can do this in PROC SUMMARY, so I present that code as well. It seems that you ahve to run PROC SUMMARY twice to make this work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=a nway;
	class group;
	var results;
	output out=_stats_ css=;
run;
proc summary data=_stats_(rename=(_freq_=nobs));
	var results nobs;
	output out=_stats1_ sum=;
run;

data pooled_Std;
	set _stats1_;
	/* Compute degrees of freedom for error */
	dfe=nobs-_freq_;
	pooled_std = sqrt(results/dfe);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584537#M14195</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-28T12:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584540#M14196</link>
      <description>Thank you so much. I got it now.&lt;BR /&gt;So much happy to have such a supportive environment.&lt;BR /&gt;I have been struggling with this last couple of days, and no one could correctly answer my queries. Its the first time I am using SAS support community and genuinely delighted with the support.</description>
      <pubDate>Wed, 28 Aug 2019 12:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584540#M14196</guid>
      <dc:creator>debashree</dc:creator>
      <dc:date>2019-08-28T12:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584541#M14197</link>
      <description>Thank you for this too.</description>
      <pubDate>Wed, 28 Aug 2019 12:59:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584541#M14197</guid>
      <dc:creator>debashree</dc:creator>
      <dc:date>2019-08-28T12:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584542#M14198</link>
      <description>Thank you.</description>
      <pubDate>Wed, 28 Aug 2019 12:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584542#M14198</guid>
      <dc:creator>debashree</dc:creator>
      <dc:date>2019-08-28T12:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled standard deviation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584543#M14199</link>
      <description>Thank you</description>
      <pubDate>Wed, 28 Aug 2019 12:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pooled-standard-deviation/m-p/584543#M14199</guid>
      <dc:creator>debashree</dc:creator>
      <dc:date>2019-08-28T12:59:51Z</dc:date>
    </item>
  </channel>
</rss>

