<?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: PROC GENMOD LS-Means differences.. what are they saying of the mean dollars? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/450168#M113353</link>
    <description>&lt;P&gt;Thank you, Paige. You've been most helpful as always.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To All: I'll leave my earlier wrong&amp;nbsp;post up there so the&amp;nbsp;evolution of thought is&amp;nbsp;complete for others in the community. If it's preferable to just keep the right answer, please feel comfortable to let me know.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 31 Mar 2018 17:58:26 GMT</pubDate>
    <dc:creator>mragaa</dc:creator>
    <dc:date>2018-03-31T17:58:26Z</dc:date>
    <item>
      <title>PROC GENMOD LS-Means differences.. what are they saying of the mean dollars?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/449977#M113309</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Challenge:&lt;/U&gt;&amp;nbsp; I wanna get the differences in revenues between different management types, in different regions and time periods.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Problem:&lt;/U&gt; These are the LS-Means tables and the code I used to get them. I'm interested in the estimate in Table 1 (red), but I'm not sure what it means in&amp;nbsp;terms of dollar revenues (blue) in Table 2? I understand it's the difference in the estimate but, admittedly, I don't get what the estimate&amp;nbsp;refers to,&amp;nbsp;as I look to the mean in dollars.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS version: 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Table 1: Differences of Period*Management*Region Least Squares Means&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Period&lt;/TD&gt;&lt;TD&gt;Management&lt;/TD&gt;&lt;TD&gt;Region&lt;/TD&gt;&lt;TD&gt;_Period&lt;/TD&gt;&lt;TD&gt;_Management&lt;/TD&gt;&lt;TD&gt;_Region&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Estimate&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;Standard Error&lt;/TD&gt;&lt;TD&gt;z&amp;nbsp;Value&lt;/TD&gt;&lt;TD&gt;Pr &amp;gt; |z|&lt;/TD&gt;&lt;TD&gt;Alpha&lt;/TD&gt;&lt;TD&gt;Lower&lt;/TD&gt;&lt;TD&gt;Upper&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;-0.6019&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;0.02224&lt;/TD&gt;&lt;TD&gt;-27.07&lt;/TD&gt;&lt;TD&gt;&amp;lt;.0001&lt;/TD&gt;&lt;TD&gt;0.05&lt;/TD&gt;&lt;TD&gt;-0.6455&lt;/TD&gt;&lt;TD&gt;-0.5583&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Table 2: Period*Management*Region Least Squares Means&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Period&lt;/TD&gt;&lt;TD&gt;Management&lt;/TD&gt;&lt;TD&gt;Region&lt;/TD&gt;&lt;TD&gt;Estimate&lt;/TD&gt;&lt;TD&gt;Standard Error&lt;/TD&gt;&lt;TD&gt;z&amp;nbsp;Value&lt;/TD&gt;&lt;TD&gt;Pr &amp;gt; |z|&lt;/TD&gt;&lt;TD&gt;Alpha&lt;/TD&gt;&lt;TD&gt;Lower&lt;/TD&gt;&lt;TD&gt;Upper&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;Mean&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Standard Error&lt;/TD&gt;&lt;TD&gt;Lower Mean&lt;/TD&gt;&lt;TD&gt;Upper Mean&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;5.7928&lt;/TD&gt;&lt;TD&gt;0.01699&lt;/TD&gt;&lt;TD&gt;340.89&lt;/TD&gt;&lt;TD&gt;&amp;lt;.0001&lt;/TD&gt;&lt;TD&gt;0.05&lt;/TD&gt;&lt;TD&gt;5.7595&lt;/TD&gt;&lt;TD&gt;5.8262&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;327.94&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;5.5729&lt;/TD&gt;&lt;TD&gt;317.2&lt;/TD&gt;&lt;TD&gt;339.05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6.3948&lt;/TD&gt;&lt;TD&gt;0.0144&lt;/TD&gt;&lt;TD&gt;444.09&lt;/TD&gt;&lt;TD&gt;&amp;lt;.0001&lt;/TD&gt;&lt;TD&gt;0.05&lt;/TD&gt;&lt;TD&gt;6.3665&lt;/TD&gt;&lt;TD&gt;6.423&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;598.7&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;8.6211&lt;/TD&gt;&lt;TD&gt;582.04&lt;/TD&gt;&lt;TD&gt;615.84&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Code:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;genmod&lt;/STRONG&gt; data=test order=formatted;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;class&amp;nbsp; Store Period Management Region / desc param=glm;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;model&amp;nbsp;Revenue = Management Period Region Management*Period*Region&amp;nbsp; /link=log dist=gamma;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; repeated subject=Store/type=ind;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lsmeans Management Region Period Management*Period*Region /ilink lines means diff cl;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;slice Management*Period*Region /nof ilink sliceby=Management diff exp cl;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 17:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/449977#M113309</guid>
      <dc:creator>mragaa</dc:creator>
      <dc:date>2018-03-30T17:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD LS-Means differences.. what are they saying of the mean dollars?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/450005#M113313</link>
      <description>&lt;P&gt;The values you see under "Estimate" in both tables are transformed to different units by the log transformation. To understand the values in real units, you have to reverse the transformation.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 18:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/450005#M113313</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-30T18:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD LS-Means differences.. what are they saying of the mean dollars?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/450028#M113314</link>
      <description>&lt;P&gt;Thank you, Paige. This is a helpful one step closer. I reversed the natural log and it works for the means but, unfortunately, not for the difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Natural log (the estimates from the model)&lt;/TD&gt;&lt;TD&gt;Exp (reversing the natural log from the left column)&lt;/TD&gt;&lt;TD&gt;Means (How it should be,&amp;nbsp;per the means column)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Region 2&lt;/TD&gt;&lt;TD&gt;6.394760638&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#339966"&gt;598.7&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#339966"&gt;598.7&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Region 3&lt;/TD&gt;&lt;TD&gt;5.792830665&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#339966"&gt;327.94&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#339966"&gt;327.94&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Difference&lt;/TD&gt;&lt;TD&gt;0.601929973&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;1.825639&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;270.76&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;-0.60192997&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;0.547753&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, the difference is&amp;nbsp;not reverting back to how it should be. I tried both the negative and the absolute values and it still misses the mark. So I have two follow up questions if you don't mind:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Should I be reversing the difference in a different way?&lt;/P&gt;&lt;P&gt;- Is there a way for SAS to just give me the numbers I'm looking for (in dollars here) instead of their natural logarithm?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 19:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/450028#M113314</guid>
      <dc:creator>mragaa</dc:creator>
      <dc:date>2018-03-30T19:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD LS-Means differences.. what are they saying of the mean dollars?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/450033#M113315</link>
      <description>&lt;P&gt;Follow-up: I got the first question. The difference here is the natural log of&amp;nbsp;the percentage of (Region 3&amp;nbsp;mean) to (Region 2 mean).&lt;/P&gt;&lt;P&gt;(54.77% , -0.60193).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This leaves the second question open: Is there a more straightforward way? Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 19:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/450033#M113315</guid>
      <dc:creator>mragaa</dc:creator>
      <dc:date>2018-03-30T19:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD LS-Means differences.. what are they saying of the mean dollars?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/450118#M113331</link>
      <description>&lt;P&gt;I think your final answer is correct. Is there a different way? Not off the top of my head, because the log of a difference is not equal to the difference of the logs.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 11:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/450118#M113331</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-31T11:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD LS-Means differences.. what are they saying of the mean dollars?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/450168#M113353</link>
      <description>&lt;P&gt;Thank you, Paige. You've been most helpful as always.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To All: I'll leave my earlier wrong&amp;nbsp;post up there so the&amp;nbsp;evolution of thought is&amp;nbsp;complete for others in the community. If it's preferable to just keep the right answer, please feel comfortable to let me know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 17:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GENMOD-LS-Means-differences-what-are-they-saying-of-the/m-p/450168#M113353</guid>
      <dc:creator>mragaa</dc:creator>
      <dc:date>2018-03-31T17:58:26Z</dc:date>
    </item>
  </channel>
</rss>

