<?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 measures) / WARNING: The generalized Hessian matrix is not positive defini in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/242274#M12769</link>
    <description>&lt;P&gt;Shoot. &amp;nbsp;But not really surprised, as there is a long list of options that EXACT doesn't play well with in GENMOD. &amp;nbsp;I just didn't see REPEATED in there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get a conditional repeated measures model to work for the first 5 days using GLIMMIX, but not a marginal model. &amp;nbsp;This is a partcularly ill-conditioned dataset...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2016 19:55:41 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2016-01-07T19:55:41Z</dc:date>
    <item>
      <title>proc GENMOD (repeated measures) / WARNING: The generalized Hessian matrix is not positive definite</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/241843#M12757</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used a GEE model for repeated measures to analyse the following data (CSV file attached):&lt;/P&gt;&lt;P&gt;. 2 groups, 5 days&lt;/P&gt;&lt;P&gt;. One binary response variable (yes/No).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is the following:&lt;/P&gt;&lt;PRE&gt;proc genmod data=DATASET rorder=internal descending;
	class GRP DAY ID;
	model TO_EXPLAIN = GRP DAY GRP*DAY / dist=bin link=logit type3;
	repeated subject=ID / type=ind withinsubject=DAY;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following message errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: Algorithm converged.
WARNING: The generalized Hessian matrix is not positive definite. Iteration will be terminated.
ERROR: Error in parameter estimate covariance computation.
ERROR: Error in estimation routine.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that these erros come from the fact that no subject show the modality "Yes" on Day 5 in both groups. How can I analyse these data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 15:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/241843#M12757</guid>
      <dc:creator>StatX</dc:creator>
      <dc:date>2016-01-05T15:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc GENMOD (repeated measures) / WARNING: The generalized Hessian matrix is not positive defini</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/242218#M12764</link>
      <description>&lt;P&gt;So long as your dataset is not huge, it may be that the EXACT statement is what you will need, based on some statements here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/mult_pkg/faq/general/complete_separation_logit_models.htm" target="_self"&gt;http://www.ats.ucla.edu/stat/mult_pkg/faq/general/complete_separation_logit_models.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc genmod data=DATASET rorder=internal descending;
	class GRP DAY ID;
	model TO_EXPLAIN = GRP DAY GRP*DAY / dist=bin link=logit type3;&lt;BR /&gt;EXACT grp day grp*day / joint estimate;
	repeated subject=ID / type=ind withinsubject=DAY;
run;&lt;/PRE&gt;
&lt;P&gt;Steve Denham&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 15:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/242218#M12764</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-01-07T15:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc GENMOD (repeated measures) / WARNING: The generalized Hessian matrix is not positive defini</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/242225#M12765</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply, but it seems that the REPEATED&amp;nbsp;statement is incompatble with EXACT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: The following statements are not allowed with exact analyses:REPEATED&lt;/PRE&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 16:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/242225#M12765</guid>
      <dc:creator>StatX</dc:creator>
      <dc:date>2016-01-07T16:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc GENMOD (repeated measures) / WARNING: The generalized Hessian matrix is not positive defini</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/242274#M12769</link>
      <description>&lt;P&gt;Shoot. &amp;nbsp;But not really surprised, as there is a long list of options that EXACT doesn't play well with in GENMOD. &amp;nbsp;I just didn't see REPEATED in there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get a conditional repeated measures model to work for the first 5 days using GLIMMIX, but not a marginal model. &amp;nbsp;This is a partcularly ill-conditioned dataset...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 19:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/242274#M12769</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-01-07T19:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc GENMOD (repeated measures) / WARNING: The generalized Hessian matrix is not positive defini</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/242678#M12775</link>
      <description>&lt;P&gt;Thanks Steve for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have unfortunaltely other datasets which gave me the same results with warnings...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 11:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/242678#M12775</guid>
      <dc:creator>StatX</dc:creator>
      <dc:date>2016-01-11T11:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc GENMOD (repeated measures) / WARNING: The generalized Hessian matrix is not positive defini</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/242696#M12777</link>
      <description>&lt;P&gt;It would be nice if the complete separation always occurred at the last observation. &amp;nbsp;Then you could truncate without too much trouble.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of what I have come across suggests analyzing without the separated data, but in a repeated measures design where we are really pretty certain that the responses/errors are correlated, that doesn't fly too well. &amp;nbsp;One thing that might work is "coarsening" the repeats, where adjacent days are collapsed. &amp;nbsp;Another is to try (and this might be hard) fitting a spline to the "non-separated" data points, in order to capture the time dependence in the covariance matrix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-GENMOD-repeated-measures-WARNING-The-generalized-Hessian/m-p/242696#M12777</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-01-11T13:50:22Z</dc:date>
    </item>
  </channel>
</rss>

