<?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 GLIMMIX Giving Incorrect Means in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLIMMIX-Giving-Incorrect-Means/m-p/841838#M332872</link>
    <description>Better post it at Statistics Forum .&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And Calling &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13758"&gt;@lvm&lt;/a&gt;</description>
    <pubDate>Tue, 01 Nov 2022 12:17:03 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-11-01T12:17:03Z</dc:date>
    <item>
      <title>PROC GLIMMIX Giving Incorrect Means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLIMMIX-Giving-Incorrect-Means/m-p/841777#M332843</link>
      <description>&lt;P&gt;Hello, I'm having problems with SAS giving me incorrect means. I've got two missing data points but it all ready correctly in my PROC PRINT step...Any help would be appreciated! I've also attached my data text file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code below:&lt;/P&gt;&lt;P&gt;TITLE1 '2022 NewLeaf NUE Trials' ;&lt;BR /&gt;DATA MORVT;&lt;BR /&gt;INFILE 'C:\Users\jlcdtv\OneDrive - University of Missouri\Documents\2022 Research\2022 Company Trials\NewLeaf NUE Trials.txt' firstobs=3 obs=134 DLM='09'x DSD;&lt;BR /&gt;INPUT TestNo$ TestName$ Site$ Trt Treatment$ Plot Rep EScore StandCt Stand Vigor HeadDate$ Julian CanopyHt Weight Moisture TestWt Yield;&lt;BR /&gt;RUN ;&lt;/P&gt;&lt;P&gt;ods html close;&lt;BR /&gt;ods rtf file='C:\Users\jlcdtv\OneDrive - University of Missouri\Documents\2022 Research\2022 Company Trials\2022 NewLeaf NUE.rtf' style=journal bodytitle;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=MORVT ;&lt;BR /&gt;QUIT ;&lt;/P&gt;&lt;P&gt;PROC GLIMMIX DATA=MORVT;&lt;BR /&gt;CLASS Trt Site;&lt;BR /&gt;MODEL Yield= Trt Site Trt*Site/ ddfm=kr dist=gamma link=log;&lt;BR /&gt;RANDOM rep;&lt;BR /&gt;ods exclude Dimensions FitStatistics OptInfo IterHistory;&lt;BR /&gt;LSMEANS Trt Site Trt*Site / ilink lines;&lt;BR /&gt;output out=new pred=predicted resid=residual student=student;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;proc print data=new noobs label;;&lt;BR /&gt;var plot site rep yield residual student;&lt;BR /&gt;where abs(student) &amp;gt; 2.5;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 21:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GLIMMIX-Giving-Incorrect-Means/m-p/841777#M332843</guid>
      <dc:creator>jchlapecka</dc:creator>
      <dc:date>2022-10-31T21:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX Giving Incorrect Means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLIMMIX-Giving-Incorrect-Means/m-p/841781#M332845</link>
      <description>&lt;P&gt;Show the LOG for the Proc Glimmix. Copy the from the log the code and &lt;STRONG&gt;all&lt;/STRONG&gt; messages from running the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do not mention which variable you know has "2 missing values". If it is one of the variables Trt or Sites then by default any record with missing values will be excluded from the model and there would typically be a note in the log about how many observations were used by the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc print has nothing to do with means, so I am not sure why you mention that. Plus you have two Proc Print calls shown. So which one are you meaning to reference.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 23:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GLIMMIX-Giving-Incorrect-Means/m-p/841781#M332845</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-31T23:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX Giving Incorrect Means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLIMMIX-Giving-Incorrect-Means/m-p/841838#M332872</link>
      <description>Better post it at Statistics Forum .&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And Calling &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13758"&gt;@lvm&lt;/a&gt;</description>
      <pubDate>Tue, 01 Nov 2022 12:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GLIMMIX-Giving-Incorrect-Means/m-p/841838#M332872</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-11-01T12:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX Giving Incorrect Means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLIMMIX-Giving-Incorrect-Means/m-p/841840#M332873</link>
      <description>&lt;P&gt;Least squares means are not arithmetical averages. They are the expected values IF the data are balanced. You have missing values.&amp;nbsp; Consequently, the lsmeans will not be equal to the means.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 12:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GLIMMIX-Giving-Incorrect-Means/m-p/841840#M332873</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-11-01T12:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX Giving Incorrect Means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLIMMIX-Giving-Incorrect-Means/m-p/842210#M333026</link>
      <description>&lt;P&gt;As indicated elsewhere, the LSMEAN is not a simple arithmetic average of the observations. It is an estimate (prediction) based on the model. The arithmetic means will only agree with LSMEANS under very specific (limited) situations. Furthermore, the LSMEANS for a non-normal distribution will definitely not be equivalent to an arithmetic average of the raw data points.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 21:02:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GLIMMIX-Giving-Incorrect-Means/m-p/842210#M333026</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2022-11-02T21:02:04Z</dc:date>
    </item>
  </channel>
</rss>

