<?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: Errors with Proc GENMOD and GEE in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Errors-with-Proc-GENMOD-and-GEE/m-p/688195#M33173</link>
    <description>&lt;P&gt;I had a quick look at your code and&amp;nbsp;Substance Abuse is specified as a nominal explanatory variables because it is in your CLASS statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;class subst_abuse (ref="0")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, in your MODEL statement,&amp;nbsp;Substance Abuse is specified as a response variable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model subst_abuse=&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your model is not correctly specified. You should remove&amp;nbsp;Substance Abuse from the CLASS Statement and use it this way in the MODEL Statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model subst_abuse(event='0')=&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Cheers!&lt;/P&gt;
&lt;P&gt;Sylvain&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2020 13:44:10 GMT</pubDate>
    <dc:creator>SylvainTremblay</dc:creator>
    <dc:date>2020-10-01T13:44:10Z</dc:date>
    <item>
      <title>Errors with Proc GENMOD and GEE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Errors-with-Proc-GENMOD-and-GEE/m-p/688089#M33171</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#000000"&gt;Trying to conduct an analysis of the effect of the ACA on substance use treatment stratified by zipcode. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#000000"&gt;Dataset is primary care clinics (OSHPD_ID); primary care clinics with substance use services (subst_abuse) and their zip code location. There is data from 2008-2017 for each clinic (some existed in some years and not in others, in addition some had services in some years and not in others). &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#000000"&gt;I am using PROC GENMOD with GEE for repeated measures. But I keep getting this error and am not sure what to do. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Class levels for some variables were not printed due to excessive size.&lt;/P&gt;&lt;P&gt;NOTE: PROC GENMOD is modeling the probability that subst_abuse='1'.&lt;/P&gt;&lt;P&gt;WARNING: The negative of the Hessian is not positive definite. The convergence is questionable.&lt;/P&gt;&lt;P&gt;WARNING: The procedure is continuing but the validity of the model fit is questionable.&lt;/P&gt;&lt;P&gt;WARNING: The specified model did not converge.&lt;/P&gt;&lt;P&gt;WARNING: Negative of Hessian not positive definite.&lt;/P&gt;&lt;P&gt;WARNING: The generalized Hessian matrix is not positive definite. Iteration will be terminated.&lt;/P&gt;&lt;P&gt;ERROR: Error in parameter estimate covariance computation.&lt;/P&gt;&lt;P&gt;ERROR: Error in estimation routine.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE GENMOD used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.10 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.11 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code Below:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT size="2" color="#000080"&gt;genmod&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT size="2" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT size="2"&gt;=PCC_combo &lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;desc&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000ff"&gt;class&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;OSHPD_ID&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT size="2"&gt;subst_abuse (&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;ref&lt;/FONT&gt;&lt;FONT size="2"&gt;=&lt;/FONT&gt;&lt;FONT size="2" color="#800080"&gt;"0"&lt;/FONT&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT size="2"&gt;ACA (&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;ref&lt;/FONT&gt;&lt;FONT size="2"&gt;=&lt;/FONT&gt;&lt;FONT size="2" color="#800080"&gt;"0"&lt;/FONT&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;FAC_ZIPCODE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT size="2"&gt;/&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;param&lt;/FONT&gt;&lt;FONT size="2"&gt;=ref &lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;ref&lt;/FONT&gt;&lt;FONT size="2"&gt;=first;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT size="2" color="#0000ff"&gt;model&lt;/FONT&gt;&lt;FONT size="2"&gt; subst_abuse=ACA FAC_ZIPCODE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT size="2"&gt;/ &lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;dist&lt;/FONT&gt;&lt;FONT size="2"&gt;=binomial &lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;link&lt;/FONT&gt;&lt;FONT size="2"&gt;=logit; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT size="2" color="#0000ff"&gt;repeated&lt;/FONT&gt; &lt;FONT size="2" color="#0000ff"&gt;subject&lt;/FONT&gt;&lt;FONT size="2"&gt;=OSHPD_ID / &lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;type&lt;/FONT&gt;&lt;FONT size="2"&gt;=exch; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT size="2" color="#0000ff"&gt;estimate&lt;/FONT&gt; &lt;FONT size="2" color="#800080"&gt;'ACA Effect'&lt;/FONT&gt;&lt;FONT size="2"&gt; ACA &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="2" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="2" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;/&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;EXP&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 03:14:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Errors-with-Proc-GENMOD-and-GEE/m-p/688089#M33171</guid>
      <dc:creator>erikhendrickson</dc:creator>
      <dc:date>2020-10-01T03:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Proc GENMOD and GEE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Errors-with-Proc-GENMOD-and-GEE/m-p/688195#M33173</link>
      <description>&lt;P&gt;I had a quick look at your code and&amp;nbsp;Substance Abuse is specified as a nominal explanatory variables because it is in your CLASS statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;class subst_abuse (ref="0")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, in your MODEL statement,&amp;nbsp;Substance Abuse is specified as a response variable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model subst_abuse=&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your model is not correctly specified. You should remove&amp;nbsp;Substance Abuse from the CLASS Statement and use it this way in the MODEL Statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model subst_abuse(event='0')=&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Cheers!&lt;/P&gt;
&lt;P&gt;Sylvain&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 13:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Errors-with-Proc-GENMOD-and-GEE/m-p/688195#M33173</guid>
      <dc:creator>SylvainTremblay</dc:creator>
      <dc:date>2020-10-01T13:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Proc GENMOD and GEE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Errors-with-Proc-GENMOD-and-GEE/m-p/688196#M33174</link>
      <description>&lt;P&gt;It is always a good idea not to include the response variable on the CLASS statement in GENMOD, but I do not think that is causing the issue.&amp;nbsp; The issue is related to the first set of WARNING messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a logistic model this is usually indicative of an issue that is commonly referred to as separation.&amp;nbsp; What this is and what to do about it can be found in the discussion of this usage note.&amp;nbsp; I suspect that the issue is related to using Zip codes as a predictor and may require that you collapse some of the Zips into related categories.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/22/599.html" target="_blank"&gt;https://support.sas.com/kb/22/599.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 13:53:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Errors-with-Proc-GENMOD-and-GEE/m-p/688196#M33174</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2020-10-01T13:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Proc GENMOD and GEE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Errors-with-Proc-GENMOD-and-GEE/m-p/688226#M33175</link>
      <description>&lt;P&gt;Very good point! Here is a reference:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;EM&gt;Collapsing Levels of Predictor Variables for Logistic Regression&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;and Weight of Evidence Coding&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;&lt;A title="Collapsing Levels of Predictor Variables for Logistic Regression and Weight of Evidence Coding" href="https://www.mwsug.org/proceedings/2012/SA/MWSUG-2012-SA03.pdf" target="_self"&gt;https://www.mwsug.org/proceedings/2012/SA/MWSUG-2012-SA03.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 14:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Errors-with-Proc-GENMOD-and-GEE/m-p/688226#M33175</guid>
      <dc:creator>SylvainTremblay</dc:creator>
      <dc:date>2020-10-01T14:33:11Z</dc:date>
    </item>
  </channel>
</rss>

