<?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: GLIMMIX - QUAD - Beta - where are the dispersion and residual stats? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/716087#M34635</link>
    <description>&lt;P&gt;Thanks for the links JilTao!&lt;/P&gt;&lt;P&gt;I read the link below, which I may have grossly misinterpreted. It said, "The scale parameter (59.4261) is displayed in the Parameter Estimates table and is inversely related to the variance of the response variable."&amp;nbsp;&lt;A href="http://support.sas.com/kb/57/480.html" target="_blank"&gt;http://support.sas.com/kb/57/480.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The congruency between you and Steve means my hurdle is out of the way and I thank you both very much!&lt;/P&gt;&lt;P&gt;DNY&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 14:56:59 GMT</pubDate>
    <dc:creator>DNYabs</dc:creator>
    <dc:date>2021-02-02T14:56:59Z</dc:date>
    <item>
      <title>GLIMMIX - QUAD - Beta - where are the dispersion and residual stats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/715475#M34601</link>
      <description>&lt;P&gt;Hello SAS Community!&lt;/P&gt;&lt;P&gt;Here is daft's question: I have a beta distribution type of data. If I elect to present my results using the "line" separation method, I would use the &lt;FONT color="#3366ff"&gt;residual&lt;/FONT&gt; as a statistic for quantitative data that follows a normal distribution, thus" &lt;FONT color="#3366ff"&gt;d&lt;/FONT&gt;=gaussian &lt;FONT color="#3366ff"&gt;link&lt;/FONT&gt;=identity". Familiar world for me. For binomial distribution, the "Pearson Chi-Square / df" value can be used to show dispersion (close to 1 is acceptable). Any suggestions what I should use to show data &lt;U&gt;dispersion&lt;/U&gt; and &lt;U&gt;residual&lt;/U&gt; for beta distribution from the output? The output that I have for beta distribution shows intercept and "scale". The trouble is I am not sure what to make of that!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, what issues do I face if I use this model without the link function? I tried that approach and what I got were different estimates from the ones with link=logit.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DNY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff"&gt;Input&lt;/FONT&gt; Loc$ Cultivar$ TRT Rep Inc Sev Index DON FDK &lt;FONT color="#ff00ff"&gt;Incx&lt;/FONT&gt; Sevx Indexx DONx FDKx Yield TW TKW;&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;Datalines;&lt;/FONT&gt;&lt;BR /&gt;Volga Samson 1 1 36 19.056 6.860 1.2 6 0.360 0.191 0.069 0.012 0.060 43.36 53.96 34.12&lt;BR /&gt;…….;&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;Proc glimmix data&lt;/FONT&gt; = DAL4 &lt;FONT color="#3366ff"&gt;method&lt;/FONT&gt; = quadrature &lt;FONT color="#3366ff"&gt;plots&lt;/FONT&gt;=boxplot(&lt;FONT color="#3366ff"&gt;random marginal conditional observed&lt;/FONT&gt;);&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;class&lt;/FONT&gt; Loc Rep Cultivar TRT;&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;model&lt;/FONT&gt;&lt;FONT color="#ff00ff"&gt; Incx&lt;/FONT&gt; = TRT /solution &lt;FONT color="#3366ff"&gt;d&lt;/FONT&gt;=beta &lt;FONT color="#3366ff"&gt;link&lt;/FONT&gt;=logit;&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;random&lt;/FONT&gt; intercept / &lt;FONT color="#3366ff"&gt;subject&lt;/FONT&gt;=Rep(Loc);&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;lsmeans&lt;/FONT&gt; TRT / &lt;FONT color="#3366ff"&gt;cl ilink adjust&lt;/FONT&gt; = Tukey &lt;FONT color="#3366ff"&gt;lines&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;STORE&lt;/FONT&gt; quad1;&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;run&lt;/FONT&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff"&gt;proc plm&lt;/FONT&gt; restore = quad1;&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;lsmeans&lt;/FONT&gt; TRT / ilink diff adj=Tukey e means lines;&lt;BR /&gt;&lt;FONT color="#333399"&gt;run&lt;/FONT&gt;;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 22:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/715475#M34601</guid>
      <dc:creator>DNYabs</dc:creator>
      <dc:date>2021-01-29T22:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX - QUAD - Beta - where are the dispersion and residual stats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/715828#M34617</link>
      <description>&lt;P&gt;I hope I am answering the right question. Variance of a beta variable at the mean can be calculated from the mean and scale as mean*(1-mean)/(1+scale). The residual is simply observed value minus predicted value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am more concerned that you get different results when specifying link=logit as compared to no link statement, as the canonical link for the beta is the logit.&amp;nbsp; They ought to be the same.&amp;nbsp; All I can suggest is something I learned here last week - the data must be the "same", and that includes the order of the observations. So check for any PROC SORT statements prior to your GLIMMIX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 17:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/715828#M34617</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-02-01T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX - QUAD - Beta - where are the dispersion and residual stats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/715913#M34618</link>
      <description>&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;Thanks for always coming through! You were right on the money on PROC SORT. I do have the same estimates now. The initial code generated the Fit Statistics below. My understanding is that the scale parameter (23.5181) is an inverse of the variance of &lt;FONT color="#ff00ff"&gt;Incx&lt;/FONT&gt;, the response variable in this case. If that is correct, the variance would be:&lt;/P&gt;&lt;P&gt;Var = Exp(23.1581)/(1+Exp(23.1581) =1? I am sure I missed something here because this does not seem correct, does it?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fit Stats" style="width: 723px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54225iBDAB602104D9C111/image-size/large?v=v2&amp;amp;px=999" role="button" title="SNAP-SHOT.png" alt="Fit Stats" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Fit Stats&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I were to use {Mean*(1-mean)/(1+Scale)}, since there is no mean in the output, I coded mean in the following fashion:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#333399"&gt;Proc glimmix&lt;/FONT&gt; &lt;FONT color="#3366ff"&gt;data&lt;/FONT&gt; = DAL96 &lt;FONT color="#3366ff"&gt;method&lt;/FONT&gt; = quadrature &lt;FONT color="#3366ff"&gt;plots&lt;/FONT&gt;=all;&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;class&lt;/FONT&gt; Loc Rep Cultivar TRT;&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;model&lt;/FONT&gt; Incx = TRT /&lt;FONT color="#3366ff"&gt;solution d&lt;/FONT&gt;=beta &lt;FONT color="#3366ff"&gt;link&lt;/FONT&gt;=logit;&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;random&lt;/FONT&gt; intercept / &lt;FONT color="#3366ff"&gt;subject&lt;/FONT&gt;=Rep(Loc);&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;output out&lt;/FONT&gt;=overdisp2&lt;FONT color="#3366ff"&gt; pearson&lt;/FONT&gt;=&lt;FONT color="#3366ff"&gt;pearson&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#333399"&gt;run&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#333399"&gt;PROC MEANS&lt;/FONT&gt; DATA=overdisp2 &lt;FONT color="#3366ff"&gt;mean var&lt;/FONT&gt;;&lt;BR /&gt;var pearson;&lt;BR /&gt;&lt;FONT color="#333399"&gt;run&lt;/FONT&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The mean=&amp;nbsp;-0.0197244 and variance =&amp;nbsp;0.8623935. Somehow, I am not happy with the negative mean unless it is supposed to be exp(-0.0197244)=0.98 and variance becomes 2.37?&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are your thoughts: Any ideas on a better code for this and for predicted estimates?&lt;/P&gt;&lt;P&gt;Thanks a mill once again,&lt;/P&gt;&lt;P&gt;DNY&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 23:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/715913#M34618</guid>
      <dc:creator>DNYabs</dc:creator>
      <dc:date>2021-02-01T23:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX - QUAD - Beta - where are the dispersion and residual stats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/716068#M34630</link>
      <description>&lt;P&gt;Try adding this LSMEANS statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmeans trt/ilink;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;From this result, you would be able to calculate the variance at each level of trt.&amp;nbsp; To get an estimate at the overall mean, use an LSMESTIMATE statement.&amp;nbsp; If you have 4 levels for trt, try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmestimate trt 'Grand mean' 1 1 1 1/divisor=4 ilink;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can adjust this for N levels by include N '1's and divisor=N.&amp;nbsp; This should avoid the negative estimated mean value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 13:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/716068#M34630</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-02-02T13:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX - QUAD - Beta - where are the dispersion and residual stats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/716080#M34634</link>
      <description>&lt;P&gt;The scale parameter for different distributions in PROC GLIMMIX can be found in the documentation below --&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=v_008&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glimmix_details03.htm&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=v_008&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glimmix_details03.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And the scale parameter is NOT the inverse of the variance for the beta distribution.&lt;/P&gt;
&lt;P&gt;The parameterizations for a beta distribution, including the variance of Y for a beta distribution, is in the documentation below&amp;nbsp; -&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=v_008&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glimmix_details02.htm&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=v_008&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glimmix_details02.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Var(y) = u(1-u) / (1+scale)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 14:24:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/716080#M34634</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-02-02T14:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX - QUAD - Beta - where are the dispersion and residual stats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/716087#M34635</link>
      <description>&lt;P&gt;Thanks for the links JilTao!&lt;/P&gt;&lt;P&gt;I read the link below, which I may have grossly misinterpreted. It said, "The scale parameter (59.4261) is displayed in the Parameter Estimates table and is inversely related to the variance of the response variable."&amp;nbsp;&lt;A href="http://support.sas.com/kb/57/480.html" target="_blank"&gt;http://support.sas.com/kb/57/480.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The congruency between you and Steve means my hurdle is out of the way and I thank you both very much!&lt;/P&gt;&lt;P&gt;DNY&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 14:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/716087#M34635</guid>
      <dc:creator>DNYabs</dc:creator>
      <dc:date>2021-02-02T14:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX - QUAD - Beta - where are the dispersion and residual stats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/716088#M34636</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;
&lt;P&gt;That worked! Thanks a bunch!&lt;/P&gt;
&lt;P&gt;DNY&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 14:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/716088#M34636</guid>
      <dc:creator>DNYabs</dc:creator>
      <dc:date>2021-02-02T14:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX - QUAD - Beta - where are the dispersion and residual stats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/716105#M34638</link>
      <description>&lt;P&gt;Inversely related does not mean it is the inverse. Scale is in the denominator of the variance formula, that is why they are inversely related. But they are not inverse of each other.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 15:55:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-QUAD-Beta-where-are-the-dispersion-and-residual-stats/m-p/716105#M34638</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-02-02T15:55:44Z</dc:date>
    </item>
  </channel>
</rss>

