<?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: geometric mean with SE, STD and CLM in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/geometric-mean-with-SE-STD-and-CLM/m-p/721661#M34963</link>
    <description>&lt;P&gt;Thanks. Simple and straight forward &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 19:00:27 GMT</pubDate>
    <dc:creator>Claus_Stenberg</dc:creator>
    <dc:date>2021-02-24T19:00:27Z</dc:date>
    <item>
      <title>geometric mean with SE, STD and CLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/geometric-mean-with-SE-STD-and-CLM/m-p/721547#M34953</link>
      <description>&lt;P&gt;Trying to get the geometric mean with&amp;nbsp;&amp;nbsp;SE, STD and CLM on some clinical data and want the outputs stats to be saved as a SAS datafile for further processing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was thinking of using proc surveymeans as I want&amp;nbsp;the variance of the geometric mean to be estimated using the Taylor series.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the relevant stats in the output dataset ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below code only gives me the&amp;nbsp;SE, STD and CLM to the arithmetic mean - NOT the geometric mean.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somebody that can help a newbie&amp;nbsp; to&amp;nbsp;surveymeans ?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A small example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=sashelp.class out=test;&lt;BR /&gt;&amp;nbsp;by sex;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveymeans data=test alpha=0.05 geomean std stderr clm ;&lt;BR /&gt;&amp;nbsp;by sex;&lt;BR /&gt;&amp;nbsp;var age;&lt;BR /&gt;&amp;nbsp;ods output&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Statistics = stats_ds;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 12:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/geometric-mean-with-SE-STD-and-CLM/m-p/721547#M34953</guid>
      <dc:creator>Claus_Stenberg</dc:creator>
      <dc:date>2021-02-24T12:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: geometric mean with SE, STD and CLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/geometric-mean-with-SE-STD-and-CLM/m-p/721548#M34954</link>
      <description>&lt;P&gt;You can use ODS output to get any calculated statistics from any procedure into a SAS data set. Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveymeans data=sashelp.class allgeo;
    ods output geometricmeans=geometricmeans;
    var height;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 13:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/geometric-mean-with-SE-STD-and-CLM/m-p/721548#M34954</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-24T13:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: geometric mean with SE, STD and CLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/geometric-mean-with-SE-STD-and-CLM/m-p/721562#M34955</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;shows that you can get what you want using PROC SURVEYMEAN, but you can also get the CLM with a DATA step by exponentiating the confidence bounds of the log transformed data.&amp;nbsp; STD and SE are a different matter.&amp;nbsp; Read through Alex Kritchevsky's webpage.&amp;nbsp; It has formulas for calculating the variability estimates, and lots of cautionary items about the use of these measures.&amp;nbsp; See&amp;nbsp;&lt;A href="http://alexkritchevsky.com/2018/06/15/geometric-mean.html" target="_self"&gt;http://alexkritchevsky.com/2018/06/15/geometric-mean.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you could use PROC FMM to fit a non-mixture distribution of a lognormal distribution.&amp;nbsp; Use the OUTPUT statement to get a dataset with means and variances, and from those calculate standard deviations and standard errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the end, though,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; has the answer you requested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 13:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/geometric-mean-with-SE-STD-and-CLM/m-p/721562#M34955</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-02-24T13:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: geometric mean with SE, STD and CLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/geometric-mean-with-SE-STD-and-CLM/m-p/721661#M34963</link>
      <description>&lt;P&gt;Thanks. Simple and straight forward &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 19:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/geometric-mean-with-SE-STD-and-CLM/m-p/721661#M34963</guid>
      <dc:creator>Claus_Stenberg</dc:creator>
      <dc:date>2021-02-24T19:00:27Z</dc:date>
    </item>
  </channel>
</rss>

