<?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 Poisson - GEE vs Maximum Likelihood and empty boxes for effect in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-Poisson-GEE-vs-Maximum-Likelihood-and-empty-boxes/m-p/562003#M27785</link>
    <description>&lt;P&gt;Thanks for the reply - the design is repeated measures (each subject experiences a condition) so a repeated statement would be warranted (if sparseness is not an issue!) However, I don't see a note concerning sparseness and separation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to the missing sparseness/separation note - a couple of followup-questions:&lt;/P&gt;&lt;P&gt;(1) If AIC etc. are not available with the repeated statement in PROC GENMOD, is it possible to get QIC &lt;EM&gt;without &lt;/EM&gt;the repeated statement? How else will I compare fit across models?&lt;/P&gt;&lt;P&gt;(2) Do you know why the effects (chi-square and p-value) for order*condition are blank in the second screenshot I showed under "analysis of maximum likelihood parameter estimates"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2019 15:51:56 GMT</pubDate>
    <dc:creator>confooseddesi89</dc:creator>
    <dc:date>2019-05-28T15:51:56Z</dc:date>
    <item>
      <title>PROC GENMOD Poisson - GEE vs Maximum Likelihood and empty boxes for effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-Poisson-GEE-vs-Maximum-Likelihood-and-empty-boxes/m-p/561644#M27765</link>
      <description>&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to the forums and beginner-moderate in SAS (v 9.4). I've been running Proc Genmod with a Poisson distribution for my outcome which is number of word pairs remembered (a memory study). I've run into several issues for which I would appreciate some guidance. The design is within-subjects and the factors I'm including are condition, order (i.e., which condition was administered first), condition*order (all fixed) and subject (repeated statement). I decided to use an iterative approach where I started with a full model with all factors, and then would drop order*condition, then order (based on the model fit statistics). I encountered the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1) When I run a model with the following code:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;genmod&lt;/STRONG&gt; data=Aftern plots=none;&lt;/P&gt;&lt;P&gt;where condition ~='First' and values_relatedness='unrelated';&lt;/P&gt;&lt;P&gt;class Condition Subject_ID_byDate Order;&lt;/P&gt;&lt;P&gt;model Number_correct=Condition Order&amp;nbsp; Condition*Order / dist=poisson offset=night_number_words;&lt;/P&gt;&lt;P&gt;repeated subject=Subject_ID_byDate / TYPE=AR(&lt;STRONG&gt;1&lt;/STRONG&gt;);&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error in the log (see attached screenshot 1) saying&lt;BR /&gt;ERROR: Error in parameter estimate covariance computation.&lt;BR /&gt;ERROR: Error in estimation routine.&lt;/P&gt;&lt;P&gt;I also get a blank model.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS issue proc genmod screenshot 1.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29773iE19E82F144352EB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS issue proc genmod screenshot 1.jpg" alt="SAS issue proc genmod screenshot 1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I read online that there may not be sufficient variation among subjects to allow for a random intercept, so I removed the repeated statement and it ran. However, I encountered another error where the effect (chi-square and p-value) for condition*order was blank (see below).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS issue proc genmod screenshot 2.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29774iD1A5FABB49097AEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS issue proc genmod screenshot 2.jpg" alt="SAS issue proc genmod screenshot 2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I then removed the "condition*order" effect and it ran fine (again without the repeated statement), but my p-value for effect of condition was very different (see below)!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS issue proc genmod screenshot 3.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29776i2DB3C09C67DF1A36/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS issue proc genmod screenshot 3.jpg" alt="SAS issue proc genmod screenshot 3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I tried re-introducing the repeated statement (with only condition and order, no condition*order) and it ran fine here too! Except now the parameter estimates indicate "Analysis Of GEE Parameter Estimates" and the fit criteria are QIC and QICu instead of AIC, etc (see screenshot below) where &lt;EM&gt;without&lt;/EM&gt; the repeated statement, the output produces "Criteria For Assessing Goodness Of Fit" (with AIC etc.) and "Analysis Of Maximum Likelihood Parameter Estimates."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS issue proc genmod screenshot 5.jpg" style="width: 478px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29777iA80E4BA1A11781B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS issue proc genmod screenshot 5.jpg" alt="SAS issue proc genmod screenshot 5.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My &lt;STRONG&gt;main questions&lt;/STRONG&gt; are (1) should I remove the repeated statement OR the condition*order to allow the model to run? Which is more appropriate or does it depend on the research questions/design? (2) Why is "condition* order" blank in the second screenshot - can I trust this model, especially as removing condition*order drastically changes the effect of condition in the third screenshot? (3) What is the difference between GEE and maximum likelihood, and how can I compare model fit across these models if the model fit statistics (e.g., QIC vs AICC) are different (e.g. third versus fourth screenshot)? (I know that for example proc mixed produces AICC whether the random intercept is present or not, allowing for model comparison).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is much appreciated and greatly needed.&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2019 22:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-Poisson-GEE-vs-Maximum-Likelihood-and-empty-boxes/m-p/561644#M27765</guid>
      <dc:creator>confooseddesi89</dc:creator>
      <dc:date>2019-05-26T22:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD Poisson - GEE vs Maximum Likelihood and empty boxes for effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-Poisson-GEE-vs-Maximum-Likelihood-and-empty-boxes/m-p/561996#M27784</link>
      <description>&lt;P&gt;EDIT: Sorry... forgot to link to the note on separation. Is added below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that with the REPEATED statement, the model is not a random effects model. There are no random intercepts. Since the GEE model obtained with the REPEATED statement is not a likelihood-based method, the usual AIC and BIC statistics are not possible. The QIC statistic is an analogous statistic developed for the GEE model. The GEE algorithm is described in the Details section of the GENMOD documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data consist of a number remembered out of some number of trials for each subject, then the data are binomial. If there is only one set of trials per subject then you don't need the REPEATED statement and you could fit a logistic model using the number of trials variable in the events/trials syntax:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic;
class condition order / param=glm;
model morn_vs_night_number_correct/num_trials = condition order condition*order;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If there are multiple sets of trials per subject, then you would still need the REPEATED statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod;
class condition order;
model morn_vs_night_number_correct/num_trials = condition order condition*order / dist=bin;
repeated subject=subject_id;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the first model can be used and PROC LOGISTIC reports a "separation" condition, then the data are probably too sparse for the model. Similarly, sparseness could be the problem if the second model is needed and you get errors like you mentioned. See &lt;A href="http://support.sas.com/kb/22599" target="_self"&gt;this note&lt;/A&gt; concerning sparseness and separation.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 18:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-Poisson-GEE-vs-Maximum-Likelihood-and-empty-boxes/m-p/561996#M27784</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-05-28T18:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD Poisson - GEE vs Maximum Likelihood and empty boxes for effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-Poisson-GEE-vs-Maximum-Likelihood-and-empty-boxes/m-p/562003#M27785</link>
      <description>&lt;P&gt;Thanks for the reply - the design is repeated measures (each subject experiences a condition) so a repeated statement would be warranted (if sparseness is not an issue!) However, I don't see a note concerning sparseness and separation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to the missing sparseness/separation note - a couple of followup-questions:&lt;/P&gt;&lt;P&gt;(1) If AIC etc. are not available with the repeated statement in PROC GENMOD, is it possible to get QIC &lt;EM&gt;without &lt;/EM&gt;the repeated statement? How else will I compare fit across models?&lt;/P&gt;&lt;P&gt;(2) Do you know why the effects (chi-square and p-value) for order*condition are blank in the second screenshot I showed under "analysis of maximum likelihood parameter estimates"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 15:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-Poisson-GEE-vs-Maximum-Likelihood-and-empty-boxes/m-p/562003#M27785</guid>
      <dc:creator>confooseddesi89</dc:creator>
      <dc:date>2019-05-28T15:51:56Z</dc:date>
    </item>
  </channel>
</rss>

