<?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 repeated in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated/m-p/72569#M3489</link>
    <description>I know it's odd. Here is my codes. I'm assuming when I define NB distribution it should give me overdispersion.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data crash;&lt;BR /&gt;
input  Intersection y major minor  accident Wt;&lt;BR /&gt;
datalines;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
1 3 9.8	9.9	10 0 &lt;BR /&gt;
1 4 9.7	9.8	10 0&lt;BR /&gt;
1 5 9.8	9.8	9 0&lt;BR /&gt;
1 6 9.9 9.8 4 -1.10&lt;BR /&gt;
2 2 10.7 9.5 38 0&lt;BR /&gt;
2 3 10.7 9.5 46 0&lt;BR /&gt;
2 4 10.7 9.6 44 0&lt;BR /&gt;
2 5 10.7     39 -0.29&lt;BR /&gt;
3 1 11.0 9.2 41 0&lt;BR /&gt;
3 2 11.0 9.3 49 0&lt;BR /&gt;
3 3 11.1 9.3 40 0&lt;BR /&gt;
3 4 11.1 9.4 20 -1.10&lt;BR /&gt;
4 2 10.4 10.0 40 0&lt;BR /&gt;
4 3 10.4 10.1 31 0&lt;BR /&gt;
4 4 10.2 9.9 45 0&lt;BR /&gt;
4 5 10.3 10.1 38 -0.29&lt;BR /&gt;
5 3 10.6 10.4 78 0&lt;BR /&gt;
5 4 10.6 10.4 64 0&lt;BR /&gt;
5 5 10.6 10.4 54 0&lt;BR /&gt;
5 6 10.6      27 -1.39&lt;BR /&gt;
6 2 10.4 10.1 57 0&lt;BR /&gt;
6 3 10.4 10.1 51 0&lt;BR /&gt;
6 4 10.2 10.1 49 0&lt;BR /&gt;
6 5 10.3 10.2 14 -1.39&lt;BR /&gt;
7 2 10.5 10.4 56 0&lt;BR /&gt;
7 3 10.5 10.4 41 0&lt;BR /&gt;
7 4 10.4 10.4 50 0&lt;BR /&gt;
7 5 10.6 10.4 21 -0.54&lt;BR /&gt;
8 2 10.3 9.6 41 0&lt;BR /&gt;
8 3 10.3 9.7 31 0&lt;BR /&gt;
8 4 10.4 9.7 33 0&lt;BR /&gt;
8 5 10.4 9.9 9 -1.39&lt;BR /&gt;
9 1 10.2 8.7 20 0&lt;BR /&gt;
9 2 10.1 8.6 4 0&lt;BR /&gt;
9 3 10.2 8.5 14 0&lt;BR /&gt;
9 4 10.0 8.2 15 0&lt;BR /&gt;
9 5 10.1 8.6 8 0&lt;BR /&gt;
9 6 10.1 8.6 11 0&lt;BR /&gt;
10 1 9.9 8.0 13 0&lt;BR /&gt;
10 2 9.9 8.0 9 0&lt;BR /&gt;
10 3 10.0 8.1 12 0&lt;BR /&gt;
10 4 10.1 8.1 10 0&lt;BR /&gt;
10 5 10.1 8.2 12 0&lt;BR /&gt;
10 6 10.0 8.1 16 0&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
proc genmod data=crash; class Intersection y;&lt;BR /&gt;
        model accident = major minor/ dist=nb link=log&lt;BR /&gt;
                offset= Wt type3 wald; Repeated Subject=Intersection;&lt;BR /&gt;
           &lt;BR /&gt;
                 run; quit;</description>
    <pubDate>Tue, 07 Jun 2011 21:57:16 GMT</pubDate>
    <dc:creator>Najmeh</dc:creator>
    <dc:date>2011-06-07T21:57:16Z</dc:date>
    <item>
      <title>proc GENMOD repeated</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated/m-p/72567#M3487</link>
      <description>when I use the following codes, it doesn't show the NB dispersion.&lt;BR /&gt;
proc genmod data=crash ; class ID year;&lt;BR /&gt;
&lt;BR /&gt;
 model accident = major minor / dist=negbin link=log&lt;BR /&gt;
                                 type3 wald; Repeated Subject= ID;&lt;BR /&gt;
but when I  delete " type3 wald; Repeated Subject= ID" it shows dispersion. How can I have estimated dispersion in type 3 repeated procedure.&lt;BR /&gt;
Thanks.</description>
      <pubDate>Fri, 03 Jun 2011 17:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated/m-p/72567#M3487</guid>
      <dc:creator>Najmeh</dc:creator>
      <dc:date>2011-06-03T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc GENMOD repeated</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated/m-p/72568#M3488</link>
      <description>That seems very odd.  Have you submitted this to SAS tech support?&lt;BR /&gt;
&lt;BR /&gt;
You could try the glimmix procedure for fitting a GEE using ML estimators instead of moment estimators of the working correlation structure.  Glimmix code that fits the same model as your genmod code would be:&lt;BR /&gt;
&lt;BR /&gt;
proc glimmix data=crash empirical=hc0;&lt;BR /&gt;
 &amp;nbsp; class ID year;&lt;BR /&gt;
 &amp;nbsp; model accident = major minor / dist=negbin link=log;&lt;BR /&gt;
 &amp;nbsp; random _residual_ / subject=ID;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The glimmix procedure will produce type3 Wald tests by default, so you do not need to specify any additional options to obtain these statistics.  The empirical=hc0 option requests traditional sandwich standard errors.  Note that the glimmix procedure offers other methods for computing robust standard errors - improvements on the traditional sandwich estimates.  You might want to use empirical=hc3.  See the following manuscripts regarding sandwich estimates:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://weber.ucsd.edu/~mbacci/white/pub_files/hwcv-019.pdf" target="_blank"&gt;http://weber.ucsd.edu/~mbacci/white/pub_files/hwcv-019.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.jstor.org/stable/pdfplus/2685594.pdf" target="_blank"&gt;http://www.jstor.org/stable/pdfplus/2685594.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
SAS documentation discussing use of the glimmix procedure for producing a GEE-type analysis can be found at:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_sect024.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_sect024.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
HTH</description>
      <pubDate>Fri, 03 Jun 2011 23:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated/m-p/72568#M3488</guid>
      <dc:creator>Dale</dc:creator>
      <dc:date>2011-06-03T23:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc GENMOD repeated</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated/m-p/72569#M3489</link>
      <description>I know it's odd. Here is my codes. I'm assuming when I define NB distribution it should give me overdispersion.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data crash;&lt;BR /&gt;
input  Intersection y major minor  accident Wt;&lt;BR /&gt;
datalines;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
1 3 9.8	9.9	10 0 &lt;BR /&gt;
1 4 9.7	9.8	10 0&lt;BR /&gt;
1 5 9.8	9.8	9 0&lt;BR /&gt;
1 6 9.9 9.8 4 -1.10&lt;BR /&gt;
2 2 10.7 9.5 38 0&lt;BR /&gt;
2 3 10.7 9.5 46 0&lt;BR /&gt;
2 4 10.7 9.6 44 0&lt;BR /&gt;
2 5 10.7     39 -0.29&lt;BR /&gt;
3 1 11.0 9.2 41 0&lt;BR /&gt;
3 2 11.0 9.3 49 0&lt;BR /&gt;
3 3 11.1 9.3 40 0&lt;BR /&gt;
3 4 11.1 9.4 20 -1.10&lt;BR /&gt;
4 2 10.4 10.0 40 0&lt;BR /&gt;
4 3 10.4 10.1 31 0&lt;BR /&gt;
4 4 10.2 9.9 45 0&lt;BR /&gt;
4 5 10.3 10.1 38 -0.29&lt;BR /&gt;
5 3 10.6 10.4 78 0&lt;BR /&gt;
5 4 10.6 10.4 64 0&lt;BR /&gt;
5 5 10.6 10.4 54 0&lt;BR /&gt;
5 6 10.6      27 -1.39&lt;BR /&gt;
6 2 10.4 10.1 57 0&lt;BR /&gt;
6 3 10.4 10.1 51 0&lt;BR /&gt;
6 4 10.2 10.1 49 0&lt;BR /&gt;
6 5 10.3 10.2 14 -1.39&lt;BR /&gt;
7 2 10.5 10.4 56 0&lt;BR /&gt;
7 3 10.5 10.4 41 0&lt;BR /&gt;
7 4 10.4 10.4 50 0&lt;BR /&gt;
7 5 10.6 10.4 21 -0.54&lt;BR /&gt;
8 2 10.3 9.6 41 0&lt;BR /&gt;
8 3 10.3 9.7 31 0&lt;BR /&gt;
8 4 10.4 9.7 33 0&lt;BR /&gt;
8 5 10.4 9.9 9 -1.39&lt;BR /&gt;
9 1 10.2 8.7 20 0&lt;BR /&gt;
9 2 10.1 8.6 4 0&lt;BR /&gt;
9 3 10.2 8.5 14 0&lt;BR /&gt;
9 4 10.0 8.2 15 0&lt;BR /&gt;
9 5 10.1 8.6 8 0&lt;BR /&gt;
9 6 10.1 8.6 11 0&lt;BR /&gt;
10 1 9.9 8.0 13 0&lt;BR /&gt;
10 2 9.9 8.0 9 0&lt;BR /&gt;
10 3 10.0 8.1 12 0&lt;BR /&gt;
10 4 10.1 8.1 10 0&lt;BR /&gt;
10 5 10.1 8.2 12 0&lt;BR /&gt;
10 6 10.0 8.1 16 0&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
proc genmod data=crash; class Intersection y;&lt;BR /&gt;
        model accident = major minor/ dist=nb link=log&lt;BR /&gt;
                offset= Wt type3 wald; Repeated Subject=Intersection;&lt;BR /&gt;
           &lt;BR /&gt;
                 run; quit;</description>
      <pubDate>Tue, 07 Jun 2011 21:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated/m-p/72569#M3489</guid>
      <dc:creator>Najmeh</dc:creator>
      <dc:date>2011-06-07T21:57:16Z</dc:date>
    </item>
  </channel>
</rss>

