<?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: Improving model fit in proc glimmix, interpretation of chi-sq/df? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Improving-model-fit-in-proc-glimmix-interpretation-of-chi-sq-df/m-p/868335#M42929</link>
    <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try that; I didn't start off with that because even though I did seed 10 weevils in each pot, we didn't always recover 10. Does that matter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kristen&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 19:34:08 GMT</pubDate>
    <dc:creator>bowerske</dc:creator>
    <dc:date>2023-04-05T19:34:08Z</dc:date>
    <item>
      <title>Improving model fit in proc glimmix, interpretation of chi-sq/df?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Improving-model-fit-in-proc-glimmix-interpretation-of-chi-sq-df/m-p/868073#M42910</link>
      <description>&lt;P&gt;Hi, I am analyzing data from an experiment testing whether insects from northern latitudes are more cold-hardy that those from southern latitudes. I have five large cages in each of three locations (north, mid, south) Each cage has 21 potted plants on which I placed 10 insects from north, mid, or southern populations( 21= 3 sources of insects x 7 months). Each month I remove one potted plant per source from each cage and count what proportion of insects survived (The variable prop is a calculated variable equal to live insects/found insects). The code that I think is the best so far is below. I have also tried binomial, which had worse fit statistics and neg binomial, which didn’t converge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=puncv.new plots=pearsonpanel (conditional marginal);&lt;/P&gt;&lt;P&gt;class Month Location Source Cage;&lt;/P&gt;&lt;P&gt;model prop= Month Location Source ;&lt;/P&gt;&lt;P&gt;random intercept /subject=Cage;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this, I get the below fit statistics and residual graphs? What is the generalized chi-sq/df= 0.05 mean about how the model fits?&amp;nbsp;Is there a model that would produce better residual graphs (i.e. fit the data better?)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bowerske_0-1680638563419.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82328i88EC11F1D8E38A58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bowerske_0-1680638563419.png" alt="bowerske_0-1680638563419.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bowerske_1-1680638584348.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82329i71C11682E99CFFE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bowerske_1-1680638584348.png" alt="bowerske_1-1680638584348.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 20:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Improving-model-fit-in-proc-glimmix-interpretation-of-chi-sq-df/m-p/868073#M42910</guid>
      <dc:creator>bowerske</dc:creator>
      <dc:date>2023-04-04T20:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Improving model fit in proc glimmix, interpretation of chi-sq/df?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Improving-model-fit-in-proc-glimmix-interpretation-of-chi-sq-df/m-p/868322#M42928</link>
      <description>&lt;P&gt;Rather than analyzing the calculated proportion, would it make sense to analyze the actual live counts? I ask that because it looks like you "seeded" the pots with equal numbers at the beginning.. If that is the case, consider a model like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=puncv.new plots=pearsonpanel (conditional marginal) method=laplace;
class Month Location Source Cage;
model live_count= Month Location Source /dist=poisson;
random intercept /subject=Cage;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;From here, you could consider interactions between you main effects, or whether there are correlations over time.&amp;nbsp; And in the end, you can use the mean estimates on the original scale divided by the number introduced as a proportional survival.&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>Wed, 05 Apr 2023 17:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Improving-model-fit-in-proc-glimmix-interpretation-of-chi-sq-df/m-p/868322#M42928</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-04-05T17:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Improving model fit in proc glimmix, interpretation of chi-sq/df?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Improving-model-fit-in-proc-glimmix-interpretation-of-chi-sq-df/m-p/868335#M42929</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try that; I didn't start off with that because even though I did seed 10 weevils in each pot, we didn't always recover 10. Does that matter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kristen&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 19:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Improving-model-fit-in-proc-glimmix-interpretation-of-chi-sq-df/m-p/868335#M42929</guid>
      <dc:creator>bowerske</dc:creator>
      <dc:date>2023-04-05T19:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Improving model fit in proc glimmix, interpretation of chi-sq/df?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Improving-model-fit-in-proc-glimmix-interpretation-of-chi-sq-df/m-p/868486#M42935</link>
      <description>&lt;P&gt;Well, you could consider the total as an offset for a count variable.&amp;nbsp; Just a thought about this though, if you put in 10, and only recover 1, and it is alive, that doesn't give me a lot of confidence that if I could have recovered all 10, then all 10 would be alive. And that is the assumption if you plug this into a binomial (or proportion) analysis.&amp;nbsp; Perhaps better to just analyze the counts of found alive, and if available, the number found dead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 19:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Improving-model-fit-in-proc-glimmix-interpretation-of-chi-sq-df/m-p/868486#M42935</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-04-06T19:08:31Z</dc:date>
    </item>
  </channel>
</rss>

