<?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: can one use proc glimmix to estimate idiosyncratic random error variance? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/can-one-use-proc-glimmix-to-estimate-idiosyncratic-random-error/m-p/719916#M34839</link>
    <description>Thanks for providing the information, this is very helpful for me. The estimated phi is around 1.25, can this be interpreted as the variance of non-subject-specific random error? Or it is a parameter to indicate degree of overdispersion? Thanks!&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Feb 2021 14:43:47 GMT</pubDate>
    <dc:creator>gregking</dc:creator>
    <dc:date>2021-02-17T14:43:47Z</dc:date>
    <item>
      <title>can one use proc glimmix to estimate idiosyncratic random error variance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/can-one-use-proc-glimmix-to-estimate-idiosyncratic-random-error/m-p/719775#M34831</link>
      <description>&lt;P&gt;i am trying to use mixed-effect logistic regression (using proc glimmix) to estimate variance of non-subject-level random error term, together with some subject-level random effects. trying to use something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=testdata;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; class&amp;nbsp; somegroup;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; model y=x1 x2 / dist=binomial link=logit&amp;nbsp; solution;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; random intercept / residual type=vc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ** or: &amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ** random&amp;nbsp; _residual_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; **&amp;nbsp; getting some number;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; random intercept / subject=somegroup;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix returns estimate for the random residual, often time some number close to 1. I am not sure if this estimated number really represent or can be interpreted as the variance of the random error term. Can someone please help? &amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 01:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/can-one-use-proc-glimmix-to-estimate-idiosyncratic-random-error/m-p/719775#M34831</guid>
      <dc:creator>gregking</dc:creator>
      <dc:date>2021-02-17T01:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: can one use proc glimmix to estimate idiosyncratic random error variance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/can-one-use-proc-glimmix-to-estimate-idiosyncratic-random-error/m-p/719884#M34835</link>
      <description>&lt;P&gt;As no subject is specified for the R side variance component, the result is a measure of overdispersion..&amp;nbsp; I think this page of the GLIMMIX documentation covers your question:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glimmix_details05.htm&amp;amp;locale=en" target="_self"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glimmix_details05.htm&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the approach lifts the constraint on the scale parameter for the binomial distribution, which is ordinarily fixed at 1.&amp;nbsp; If your result is close to 1, I would think there is little evidence for overdispersion.&amp;nbsp; You could check the information criteria and the chi square/df ratio to see what is going on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 13:04:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/can-one-use-proc-glimmix-to-estimate-idiosyncratic-random-error/m-p/719884#M34835</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-02-17T13:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: can one use proc glimmix to estimate idiosyncratic random error variance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/can-one-use-proc-glimmix-to-estimate-idiosyncratic-random-error/m-p/719916#M34839</link>
      <description>Thanks for providing the information, this is very helpful for me. The estimated phi is around 1.25, can this be interpreted as the variance of non-subject-specific random error? Or it is a parameter to indicate degree of overdispersion? Thanks!&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Feb 2021 14:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/can-one-use-proc-glimmix-to-estimate-idiosyncratic-random-error/m-p/719916#M34839</guid>
      <dc:creator>gregking</dc:creator>
      <dc:date>2021-02-17T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: can one use proc glimmix to estimate idiosyncratic random error variance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/can-one-use-proc-glimmix-to-estimate-idiosyncratic-random-error/m-p/720093#M34855</link>
      <description>&lt;P&gt;the problem i need to solve is like this: first I created some binary outcome test data:&lt;/P&gt;&lt;P&gt;p = 1/(1+exp(6.0 - 3.0 * L + 1.0*RANNOR(111)));&lt;BR /&gt;if RANUNI(222) &amp;lt; p then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;y=1;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; y=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I try to see if I could recover the original parameters, including the variance of the zero mean error term in the exponent, by running proc glimmix:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=testdata;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; model y=L / dist=binomial link=logit&amp;nbsp; solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; random intercept;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the estimated parameters are all very different from those that generated the testdata. Is there anything in glimmix that can do that?&amp;nbsp; or the problem itself is wrong?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 03:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/can-one-use-proc-glimmix-to-estimate-idiosyncratic-random-error/m-p/720093#M34855</guid>
      <dc:creator>gregking</dc:creator>
      <dc:date>2021-02-18T03:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: can one use proc glimmix to estimate idiosyncratic random error variance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/can-one-use-proc-glimmix-to-estimate-idiosyncratic-random-error/m-p/720180#M34857</link>
      <description>&lt;P&gt;I have some issues with what is supposed to be going on.&amp;nbsp; First, the code for the data to be generated has the variable 'L', but it is not referenced or given a value anywhere.&amp;nbsp; Second, I don't know how many observations are being generated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made some guesses - looping your code with 1000 observations and defining L at each iteration as L=n/1000, I get a dataset with 27 1's and 973 0's.&amp;nbsp; When I plug in the expected values for the random variates (0 for rannor, 0.5 for ranuni and L), I get a predicted value of 22 1's.&amp;nbsp; &amp;nbsp;This is with p=exp(-4.5) = 0.011 -&amp;gt; expected y =0.011/0.5 = 2.2%; The RANDOM intercept statement leads to a non-positive G matrix, so I commented it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using an ESTIMATE statement, I calculated the expected value of y in the logit space at 0.5 (the mean value for L).&amp;nbsp; It was -3.80, with 95% confidence bounds of (-4.26, -3.33), not quite including the -4.5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my thought is that the addition of the normal error may be affecting your ability to recover the generating parameters, but since the logit is strongly non-linear, the influence of positive values of the normal variate may be enough to move the needle (so to speak) toward a slightly larger estimate for the logit.&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;</description>
      <pubDate>Thu, 18 Feb 2021 13:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/can-one-use-proc-glimmix-to-estimate-idiosyncratic-random-error/m-p/720180#M34857</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-02-18T13:52:58Z</dc:date>
    </item>
  </channel>
</rss>

