<?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 genmod with repeated measures... do I need to worry about overdispersion? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-with-repeated-measures-do-I-need-to-worry-about/m-p/105002#M5548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you use ar(1) as a covariance structure, you implicitly ignore overdispersion.&amp;nbsp; What does an exploratory step of calculating means and variances at each time point show?&amp;nbsp; Are the means and variances approximately equal, both within and between timepoints?&amp;nbsp; If so, overdispersion is probably not an issue.&amp;nbsp; If the variances are consistently larger than the means, you may need to consider a negative binomial distribution.&amp;nbsp; If the variances look substantially different at the time points, then the ar(1) covariance structure may be inadequately fitting your results.&amp;nbsp; You may wish to consider moving to PROC GLIMMIX, which has a wider variety of possible variance-covariance structures.&amp;nbsp; In particular, you may need to consider type=arh(1), if your timepoints are evenly spaced, or sp(pow) if they are unevenly spaced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data = nvissex ic=q;&lt;/P&gt;&lt;P&gt;class ssex sname;&lt;/P&gt;&lt;P&gt;model nvis = ssex/dist=poisson;&lt;/P&gt;&lt;P&gt;random sname/residual subject=sname type=ar(1) /*or other structures*/;&lt;/P&gt;&lt;P&gt;lsmeans ssex/diff cl ilink;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the information criteria, including the generalized chi-square/Df.&amp;nbsp; If this is extremely large, you have a good case for overdispersion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&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>Tue, 28 Aug 2012 12:01:47 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2012-08-28T12:01:47Z</dc:date>
    <item>
      <title>proc genmod with repeated measures... do I need to worry about overdispersion?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-with-repeated-measures-do-I-need-to-worry-about/m-p/105001#M5547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am conducting an analysis of the effect of sex on number of dispersal events in a rodent.&amp;nbsp; Basically, we're interested in seeing whether males or females travel more between communities.&amp;nbsp; There are repeated measures because individuals were followed on multiple nights, and the dependent variable is the number of visits per night.&amp;nbsp; It's unclear to me whether I need to worry about overdispersion with the repeated measures model.&amp;nbsp; I understand that the typical ways of testing for overdispersion (goodness of fit tests with deviance or pearson stats) aren't appropriate, and it seems that using a repeated measures analysis is typically considered a way of combatting overdispersion.&amp;nbsp; So should I just not worry about it?&amp;nbsp; Code is below...&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt;proc genmod&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; = nvissex;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;class ssex sname;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;model nvis = ssex/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=poisson &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=log &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;type3&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;repeated subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; = sname/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=ar(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 10pt; font-family: Courier New;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;corrw&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;lsmeans ssex/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;diff&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;cl&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Key:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;nvis = visits per night&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;ssex = sex (male or female)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;sname = individual ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 19:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-with-repeated-measures-do-I-need-to-worry-about/m-p/105001#M5547</guid>
      <dc:creator>RitaMichelle</dc:creator>
      <dc:date>2012-08-27T19:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod with repeated measures... do I need to worry about overdispersion?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-with-repeated-measures-do-I-need-to-worry-about/m-p/105002#M5548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you use ar(1) as a covariance structure, you implicitly ignore overdispersion.&amp;nbsp; What does an exploratory step of calculating means and variances at each time point show?&amp;nbsp; Are the means and variances approximately equal, both within and between timepoints?&amp;nbsp; If so, overdispersion is probably not an issue.&amp;nbsp; If the variances are consistently larger than the means, you may need to consider a negative binomial distribution.&amp;nbsp; If the variances look substantially different at the time points, then the ar(1) covariance structure may be inadequately fitting your results.&amp;nbsp; You may wish to consider moving to PROC GLIMMIX, which has a wider variety of possible variance-covariance structures.&amp;nbsp; In particular, you may need to consider type=arh(1), if your timepoints are evenly spaced, or sp(pow) if they are unevenly spaced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data = nvissex ic=q;&lt;/P&gt;&lt;P&gt;class ssex sname;&lt;/P&gt;&lt;P&gt;model nvis = ssex/dist=poisson;&lt;/P&gt;&lt;P&gt;random sname/residual subject=sname type=ar(1) /*or other structures*/;&lt;/P&gt;&lt;P&gt;lsmeans ssex/diff cl ilink;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the information criteria, including the generalized chi-square/Df.&amp;nbsp; If this is extremely large, you have a good case for overdispersion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&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>Tue, 28 Aug 2012 12:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-with-repeated-measures-do-I-need-to-worry-about/m-p/105002#M5548</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-08-28T12:01:47Z</dc:date>
    </item>
  </channel>
</rss>

