<?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: Convert lognormal distribution  LS Means to the original scale in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Convert-lognormal-distribution-LS-Means-to-the-original-scale/m-p/950456#M47525</link>
    <description>&lt;P&gt;We have had luck using the standard error of the lsmean reported in GLIMMIX as the value to plug in for sigma^2 to give a standard error on the arithmetic scale. Logically this seems a bit off, but the values for the standard error (square root of the variance) are reasonable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wikipedia presents the following formulas.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveDenham_0-1731426295558.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102098i28596DF85BDD92D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveDenham_0-1731426295558.png" alt="SteveDenham_0-1731426295558.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;in which mu is the expected value (mean) on the log scale and sigma^2 is the variance on the log scale.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I must be missing something algebraic as to why the two sources use different representations. I definitely think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;'s statement about using the estimate of the scale parameter from the SOLUTION is helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2024 16:06:09 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2024-11-12T16:06:09Z</dc:date>
    <item>
      <title>Convert lognormal distribution  LS Means to the original scale</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convert-lognormal-distribution-LS-Means-to-the-original-scale/m-p/950127#M47515</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp; I have used this reference to convert the lognormal LS mean estimates to the original scale. The question is what is&amp;nbsp;σ2 in the model outputs?&amp;nbsp; I'm using CS covariance structure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E[Y]=exp⁡{μ}ω&lt;/P&gt;
&lt;P&gt;Var[Y]=exp⁡{2μ}ω(ω−1)&lt;/P&gt;
&lt;P&gt;ω=exp⁡{σ2}&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/statcdc/14.2/statug/statug_glimmix_syntax17.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/statcdc/14.2/statug/statug_glimmix_syntax17.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 15:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convert-lognormal-distribution-LS-Means-to-the-original-scale/m-p/950127#M47515</guid>
      <dc:creator>LOLO12</dc:creator>
      <dc:date>2024-11-07T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Convert lognormal distribution  LS Means to the original scale</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convert-lognormal-distribution-LS-Means-to-the-original-scale/m-p/950193#M47517</link>
      <description>You need to use sas built-in macro &lt;BR /&gt;%Margins&lt;BR /&gt;%NLMeans&lt;BR /&gt;%NLEstimate&lt;BR /&gt;to complete this task.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/37/228.html" target="_blank"&gt;https://support.sas.com/kb/37/228.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/62/362.html" target="_blank"&gt;https://support.sas.com/kb/62/362.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Nov 2024 01:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convert-lognormal-distribution-LS-Means-to-the-original-scale/m-p/950193#M47517</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-11-08T01:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert lognormal distribution  LS Means to the original scale</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convert-lognormal-distribution-LS-Means-to-the-original-scale/m-p/950232#M47520</link>
      <description>&lt;P&gt;I just need to know how to find the Standard Deviation without the macro?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 16:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convert-lognormal-distribution-LS-Means-to-the-original-scale/m-p/950232#M47520</guid>
      <dc:creator>LOLO12</dc:creator>
      <dc:date>2024-11-08T16:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert lognormal distribution  LS Means to the original scale</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convert-lognormal-distribution-LS-Means-to-the-original-scale/m-p/950291#M47522</link>
      <description>&lt;P&gt;I think you are asking where to find an estimate for the sigma^2 term in the formula among the PROC GLMMIX output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you add the SOLUTION option to the MODEL statement, you should get a ParameterEstimates table. The last row has an estimate of the scale parameter.&lt;/P&gt;
&lt;P&gt;I believe that the estimate is for the sigma^2 term in the formulas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't use PROC GLIMMIX very often, so perhaps a GLIMMIX expert can confirm?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2024 10:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convert-lognormal-distribution-LS-Means-to-the-original-scale/m-p/950291#M47522</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-11-09T10:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert lognormal distribution  LS Means to the original scale</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convert-lognormal-distribution-LS-Means-to-the-original-scale/m-p/950456#M47525</link>
      <description>&lt;P&gt;We have had luck using the standard error of the lsmean reported in GLIMMIX as the value to plug in for sigma^2 to give a standard error on the arithmetic scale. Logically this seems a bit off, but the values for the standard error (square root of the variance) are reasonable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wikipedia presents the following formulas.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveDenham_0-1731426295558.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102098i28596DF85BDD92D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveDenham_0-1731426295558.png" alt="SteveDenham_0-1731426295558.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;in which mu is the expected value (mean) on the log scale and sigma^2 is the variance on the log scale.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I must be missing something algebraic as to why the two sources use different representations. I definitely think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;'s statement about using the estimate of the scale parameter from the SOLUTION is helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 16:06:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convert-lognormal-distribution-LS-Means-to-the-original-scale/m-p/950456#M47525</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-11-12T16:06:09Z</dc:date>
    </item>
  </channel>
</rss>

