<?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: Estimating the ratio of cell means in ANOVA under lognormal assumption in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161559#M8410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it clear, I placed the formulas in this post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stats.stackexchange.com/questions/111902/estimating-the-ratio-of-cell-means-in-anova-under-lognormal-assumption" title="http://stats.stackexchange.com/questions/111902/estimating-the-ratio-of-cell-means-in-anova-under-lognormal-assumption"&gt;r - Estimating the ratio of cell means in ANOVA under lognormal assumption - Cross Validated&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I managed to deduce that the exp(b1) should be estimated as the ratio of arithmetic cell means, but, on the other hand,&lt;/P&gt;&lt;P&gt;it should be estimated as the ratio of geometric cell means. Apparently, it's impossible, and I need to know where I made a mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Aug 2014 18:43:27 GMT</pubDate>
    <dc:creator>JamesLin</dc:creator>
    <dc:date>2014-08-16T18:43:27Z</dc:date>
    <item>
      <title>Estimating the ratio of cell means in ANOVA under lognormal assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161552#M8403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;I am conducting a two-sample test (1-way ANOVA with 2 treatments), and the goal is to estimate the ratio of cell means assuming that the data are lognormal. A simple approach is to log the response and fit a model&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;log(Y) = b0 + b1 * X&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;and then estimate the ratio as&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;R = exp(b1).&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;However, that gives the ratio of geometric cell means rather than arithmetic cell means.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;I assumed that if I fit a "proper" lognormal model using either gamlss in R or PROC GLIMMIX in SAS, I will get the ratio of arithmetic means, but for some reason both procedures generate the same slope as the log(Y) regression.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;This is odd because when I use this approach with Poisson or Negative Binomial regression, I do get the ratio of arithmetic means. What am I missing?&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(252, 251, 248, 0.901961);"&gt;Thanks, James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 18:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161552#M8403</guid>
      <dc:creator>JamesLin</dc:creator>
      <dc:date>2014-08-14T18:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the ratio of cell means in ANOVA under lognormal assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161553#M8404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The lognormal is a bit of an "odd duck" in terms of distributions. You are basically saying that log(Y) is normal. As stated in the GLIMMIX User's Guide, the distribution fitted is "not the distribution of Y". Thus, the antilog is not the mean of Y, but is related to the mean of Y. You can get the required ratio of means using the normal distribution with a log link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=b;&lt;/P&gt;&lt;P&gt;class trt; *two levels;&lt;/P&gt;&lt;P&gt;model y = trt / s dist=normal &lt;STRONG&gt;link=log&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;lsmeans trt / cl diff ilink ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exp(trt1) will give you the ratio you are looking for. And, the exp(mu1-mu2) will give the same thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 19:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161553#M8404</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2014-08-14T19:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the ratio of cell means in ANOVA under lognormal assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161554#M8405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess my first question would be: If the data are lognormally distributed, why would you want a ratio of the arithmetic means, knowing that the arithmetic means are biased?&amp;nbsp; The ratio of geometric means is at least something closer.&amp;nbsp; Note that the expected values and variances are not obtained by a simple exponentiation, and so a ratio of expected values is going to involve a few lines of data step programming.&amp;nbsp; See the documentation for the DIST= option of the MODEL statement, and search down below the table for the paragraphs on the lognormal distribution, where equations for the expected value and variance are given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 19:22:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161554#M8405</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-08-14T19:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the ratio of cell means in ANOVA under lognormal assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161555#M8406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume Normal with log link means that Y ~ N (mu, sigma) where mu = exp(x'b). That is, while the mean response is guaranteed to be positive, this distribution can still generate negative observations. It doesn't make much sense because my observations are always positive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 19:37:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161555#M8406</guid>
      <dc:creator>JamesLin</dc:creator>
      <dc:date>2014-08-14T19:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the ratio of cell means in ANOVA under lognormal assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161556#M8407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You asked about getting the ratio of the two means by using exp(b), and I showed you how to do it in GLIMMIX (works in GENMOD also). It will always work for the point estimate and positive means. But I did not say you should be doing this. As Steve wrote, you will have to use post-model fitting in a data step to get the means on the original scale if you choose log-normal for your distribution.Those means are not obtainable in the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 19:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161556#M8407</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2014-08-14T19:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the ratio of cell means in ANOVA under lognormal assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161557#M8408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you mean by "biased". My goal is to get a ratio of two expected responses, i.e.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;E[Y | trt = 2] / E[Y | trt = 1]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correspondingly, an unbiased estimator of E[Y | trt = x] is an arithmetic average of responses under treatment x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found those formulas in SAS manual, but it doesn't make sense. The two sample test is equivalent to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;log(Y1) ~ N(mu1, sigma2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;log(Y2) ~ N(mu2, sigma2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So E[Y2] / E[Y1] = exp(mu2 - mu1)&amp;nbsp; because the sigma2 term cancels out, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 20:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161557#M8408</guid>
      <dc:creator>JamesLin</dc:creator>
      <dc:date>2014-08-14T20:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the ratio of cell means in ANOVA under lognormal assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161558#M8409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correspondingly, an unbiased estimator of E[Y | trt = x] is an arithmetic average of responses under treatment x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is only true for certain distributions, and certainly is not the case for distributions such as lognormal, poisson, negative binomial, gamma and several others.&amp;nbsp; If it were true, there would never have been much need to develop generalized linear models.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 11:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161558#M8409</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-08-15T11:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the ratio of cell means in ANOVA under lognormal assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161559#M8410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it clear, I placed the formulas in this post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stats.stackexchange.com/questions/111902/estimating-the-ratio-of-cell-means-in-anova-under-lognormal-assumption" title="http://stats.stackexchange.com/questions/111902/estimating-the-ratio-of-cell-means-in-anova-under-lognormal-assumption"&gt;r - Estimating the ratio of cell means in ANOVA under lognormal assumption - Cross Validated&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I managed to deduce that the exp(b1) should be estimated as the ratio of arithmetic cell means, but, on the other hand,&lt;/P&gt;&lt;P&gt;it should be estimated as the ratio of geometric cell means. Apparently, it's impossible, and I need to know where I made a mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2014 18:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/161559#M8410</guid>
      <dc:creator>JamesLin</dc:creator>
      <dc:date>2014-08-16T18:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the ratio of cell means in ANOVA under lognormal assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/962002#M48205</link>
      <description>&lt;P&gt;Hello, there. I found your post while searching for something on the lognormal distribution in the community. I read from your profile that you have not been here for more than four years. In addition, this question was raised more than 10 years ago. I am not sure if your problem has been solved and if you need my answer for the time being. But I think somebody else may need it and am therefore here to offer my viewpoint on your problem.&lt;/P&gt;
&lt;P&gt;I think ANOVA is a suitable choice in terms of estimating the group means. But forming confidence intervals is not so intuitive under your setting. Why not try the accelerated failure time (AFT) model and put the group indicators as the only independent variables in your model? The AFT model is very inclusive in the sense that the lognormal distribution is only one of the popular distributions that can be modeled. Methods of inferences with respect to the AFT model, including the construction of confidence intervals of the dependent variable, may be more comprehensively studied than the log-transformed version of ANOVA you employed. I think you can have a try.&lt;/P&gt;
&lt;P&gt;I have also found an article that might solve your problem under another paradigm. You may take a look.&amp;nbsp;&lt;A href="https://www.sciencedirect.com/science/article/abs/pii/S0378375802001532" target="_blank"&gt;Inferences on the means of lognormal distributions using generalized p-values and generalized confidence intervals - ScienceDirect&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 13:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-ratio-of-cell-means-in-ANOVA-under-lognormal/m-p/962002#M48205</guid>
      <dc:creator>Season</dc:creator>
      <dc:date>2025-03-17T13:27:18Z</dc:date>
    </item>
  </channel>
</rss>

