<?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: Non-normal data; PROC GLIMMIX in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/198947#M10677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly what I needed. You saved me a couple of day and a few headaches.&lt;/P&gt;&lt;P&gt;MANY THANKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 15:05:04 GMT</pubDate>
    <dc:creator>AgReseach7</dc:creator>
    <dc:date>2015-07-09T15:05:04Z</dc:date>
    <item>
      <title>Non-normal data; PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/198945#M10675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Completed a feedlot Trial with 6 treatments (animal was exp. unit). We collected blood (twice) and analyzed multiple blood serum components (e.g., urea N, glucose, etc.).&lt;/P&gt;&lt;P&gt;Some of the continuous variables are not normally distributed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I have the following SAS statement together, but need help on determining exactly what to use (run all of them and look at model with best fit?):&lt;/P&gt;&lt;P&gt;"Method = " laplace, quad or ?&lt;/P&gt;&lt;P&gt;"Dist = "&amp;nbsp; normal, gamma, invgauss, beta, or ?&lt;/P&gt;&lt;P&gt;"Link = " log or ?&lt;/P&gt;&lt;P&gt;"Adjust = " How do you know to use "Tukey" or "KR"?&lt;/P&gt;&lt;P&gt;I believe that ARH(1) will provide the best fit, but... do I need to also try CSH, AR(1), CS, ...?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;There are too many possible combinations of the above factors, thus I'm sure I'd screw up somewhere.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Guidance on what to use would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached an Excel spreadsheet of the data if needed (I highlighted the serum variables that I can't get "normal"; through data transformation, deleting any outliers that I can, etc...).&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;PROC&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;GLIMMIX&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;method&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=laplace;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; TRT DAY ID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;MODEL&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; GLUCOSE = TRT day trt*day/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=negbin &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=log;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;Random&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; day / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = id(trt) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; =ARH(&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;LSMEANS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; TRT day/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;PDIFF&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;ADJUST&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=TUKEY;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;LSmeans&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; trt*day/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;slicediff&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=day &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;adjust&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=tukey;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;QUIT&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSO: PROC UNIV. of NEFA if it helps any&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="11114" alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/11114_pastedImage_2.png" style="width: 522px; height: 853px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="11115" alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/11115_pastedImage_3.png" style="width: 669px; height: 609px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="11116" alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/11116_pastedImage_4.png" style="width: 684px; height: 615px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 20:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/198945#M10675</guid>
      <dc:creator>AgReseach7</dc:creator>
      <dc:date>2015-07-08T20:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Non-normal data; PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/198946#M10676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say some of the endpoints have a normal distribution of errors (remember that is the assumption, NOT that the endpoint itself is normally distributed)&amp;nbsp; The others are probably best fit with a lognormal distribution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the error structure, a lot depends on the spacing of the measurements in time. AR(1) and ARH(1) assume that the measurements are equally spaced in time.&amp;nbsp; CS and CSH assume that the correlation between close together time points is the same as more separated in time points.&amp;nbsp; However, you only have two time points (Day 0 and Day 26), so CSH and CS would make perfect sense.&amp;nbsp; Fit both, pick the one that yields the smaller corrected AIC value.&amp;nbsp; Try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;PROC&lt;/STRONG&gt; &lt;STRONG style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;GLIMMIX&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data=yourdata&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;CLASS&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; TRT DAY ID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;MODEL&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; GLUCOSE = TRT day trt*day/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=lognormal ddfm=kr2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;Random&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; day /residual &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = id(trt) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; =CSH;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;LSMEANS&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; TRT day/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;DIFF&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ADJUST&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=TUKEY;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;LSmeans&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; trt*day/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;slicediff&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=day &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;adjust&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=tukey adjdfe=row; /* I really dislike Tukey's adjustment for repeated measures data.&amp;nbsp; You might look into adjust=simulate */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;ODS OUTPUT lsmeans=lsmeans;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;QUIT&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Now, to get lognormal estimates back onto the original scale you'll have to post-process the lsmeans dataset, and this is where some mathematical statistics enters the picture.&amp;nbsp; Simply exponentiating the estimate will give an estimate of the median value.&amp;nbsp; If you want to get an estimate of the expected value and of the standard error of the expected value, you'll need the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data btlsmeans;&lt;/P&gt;&lt;P&gt;set lsmeans;&lt;/P&gt;&lt;P&gt;omega=exp(stderr*stderr);&lt;/P&gt;&lt;P&gt;btlsmean=exp(estimate)*sqrt(omega);&lt;/P&gt;&lt;P&gt;btvar=exp(2*estimate)*omega*(omega-1);&lt;/P&gt;&lt;P&gt;btsem=sqrt(btvar);&lt;/P&gt;&lt;P&gt;run;&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, 09 Jul 2015 12:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/198946#M10676</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-09T12:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Non-normal data; PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/198947#M10677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly what I needed. You saved me a couple of day and a few headaches.&lt;/P&gt;&lt;P&gt;MANY THANKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 15:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/198947#M10677</guid>
      <dc:creator>AgReseach7</dc:creator>
      <dc:date>2015-07-09T15:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Non-normal data; PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/307682#M16282</link>
      <description>&lt;P&gt;In your post below, I am curious:&lt;/P&gt;
&lt;P&gt;What is the difference in your editor statement vs. iLink function in an LSMeans statement?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 15:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/307682#M16282</guid>
      <dc:creator>AgReseach7</dc:creator>
      <dc:date>2016-10-27T15:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Non-normal data; PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/308813#M16351</link>
      <description>&lt;P&gt;Because the variance is separable from the mean for the lognormal distribution, using the ILINK option with DIST=LOGNORMAL will return the same value on both the link transformed and original scales. &amp;nbsp;That is why you have to post-process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 18:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/308813#M16351</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-11-02T18:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Non-normal data; PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/448172#M23430</link>
      <description>&lt;P&gt;how do I get beta (PROC GLIMMIX Beta distribution) back on original scale?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Non-normal-data-PROC-GLIMMIX/m-p/448172#M23430</guid>
      <dc:creator>AgReseach7</dc:creator>
      <dc:date>2018-03-23T14:40:25Z</dc:date>
    </item>
  </channel>
</rss>

