<?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 Coefficient Value 0 and missing Z value on GEE parameter estimate table in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/808398#M39772</link>
    <description>&lt;P&gt;Always check the log for error or warning messages and mention all such messages when you post questions. This warning indicates that the procedure was not able to converge to a proper maximum likelihood solution. When that happens, GENMOD just displays the last iteration which may not be something you'd want to use. Model fitting problems are quite common with binary response models, usually because the data are too sparse to support the complexity of the specified model. I suggest you start with a simpler model. First, either remove the TYPE3 option or add the WALD option. Also, don't use the most complex correlation structure - replace TYPE=UN with TYPE=IND or TYPE=EXCH. If you still get errors or warnings, then simplify the model by reducing the number of predictors in the model, probably starting with the most important variable or two. If that fits successfully, then add a variable at a time. You might not be able to successfully use all of them.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 19:32:50 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2022-04-18T19:32:50Z</dc:date>
    <item>
      <title>Proc Genmod Coefficient Value 0 and missing Z value on GEE parameter estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/807919#M39737</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I run the code below. GEE parameter estimate table have some coefficient estimates with Coefficient Value 0 and missing Z values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data is a patient level data and collected each year for each patient from 2014 to 2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Number of observation=2789036&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dependent Variables;&lt;/P&gt;&lt;P&gt;hospital_visit=0-1&lt;/P&gt;&lt;P&gt;Independent Variables;&lt;/P&gt;&lt;P&gt;plan_1_enrolled=0-1&lt;BR /&gt;patient_race=White Black Asian Hispanic&lt;BR /&gt;urban_area=0-1&lt;BR /&gt;patient_age=16-64&lt;BR /&gt;patient_gender=0-1&lt;BR /&gt;care_type=1-2-3-4-5&lt;BR /&gt;calender_year=2014-2015-2016-2017-2018&lt;BR /&gt;plan_2_enrolled=0-1&lt;BR /&gt;plan_3_enrolled=0-1&lt;BR /&gt;Patient_ID=12 digit id number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data = online ;&lt;BR /&gt;format calender_year patient_gender care_type patient_age plan_1_enrolled patient_race care_type plan_2_enrolled plan_3_enrolled urban_area;&lt;/P&gt;&lt;P&gt;class Patient_ID calender_year patient_gender (ref='1') care_type(ref='1') patient_race(ref='WHITE') plan_1_enrolled(ref='0') plan_2_enrolled(ref='0') plan_3_enrolled (ref='0') urban_area (ref='0') ;&lt;/P&gt;&lt;P&gt;model hospital_visit (event='1') = plan_1_enrolled*patient_race plan_1_enrolled urban_area patient_race patient_age patient_gender care_type calender_year plan_2_enrolled plan_3_enrolled / dist=normal link=IDENTITY type3&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;repeated subject=Patient_ID/type=un;&lt;/P&gt;&lt;P&gt;lsmeans plan_1_enrolled*patient_race urban_area plan_1_enrolled patient_race patient_gender care_type calender_year plan_2_enrolled plan_3_enrolled / cl diff ilink exp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;      title'MODEL results for question ';
proc genmod data = online ;
  format calender_year patient_gender care_type patient_age plan_1_enrolled patient_race care_type plan_2_enrolled plan_3_enrolled  urban_area;

  class Patient_ID calender_year  patient_gender (ref='1') care_type(ref='1') patient_race(ref='WHITE') plan_1_enrolled(ref='0')  plan_2_enrolled(ref='0')  plan_3_enrolled (ref='0') urban_area (ref='0')  ;

model   hospital_visit (event='1') = plan_1_enrolled*patient_race plan_1_enrolled urban_area  patient_race patient_age patient_gender care_type calender_year   plan_2_enrolled plan_3_enrolled 
/ 
                          dist=normal
link=IDENTITY
                          type3 
;

repeated subject=Patient_ID/type=un;

lsmeans plan_1_enrolled*patient_race urban_area plan_1_enrolled patient_race  patient_gender care_type calender_year  plan_2_enrolled plan_3_enrolled / cl diff ilink exp;


  run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result  pic jpeg.jpg" style="width: 720px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70406iD128780E3D039B00/image-size/large?v=v2&amp;amp;px=999" role="button" title="result  pic jpeg.jpg" alt="result  pic jpeg.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 20:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/807919#M39737</guid>
      <dc:creator>OJohn_StaT</dc:creator>
      <dc:date>2022-04-14T20:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod Coefficient Value 0 and missing Z value on GEE parameter estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/807924#M39739</link>
      <description>&lt;P&gt;All of the zero parameter estimates, besides for patient race and plan_1_enrolled, are all proper since they are for the reference levels of those CLASS variables. You should investigate the values of those two variables in your data to see is something is wrong there. You should also check the SAS log to see if there are any messages that might suggest a problem causing those parameters to be zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if your response is binary then it is decidedly not normally distributed (and the EVENT= response option will be ignored). You should specify DIST=BIN.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 20:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/807924#M39739</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-04-14T20:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod Coefficient Value 0 and missing Z value on GEE parameter estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/808394#M39771</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633" target="_blank" rel="noopener"&gt;StatDave_sas ,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for taking the time to help me to solve the issue. I change the distribution comment to&amp;nbsp;dist=bin and link comment to link=logit.&amp;nbsp; But I had the same issue on the results again. Also, I had the warning of "WARNING: Iteration limit exceeded." after using "dist=bin and link=logit".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also investigated these 2 problematic variables but there is no missing data issue or something like that. The variables seem fine.&lt;/P&gt;&lt;P&gt;I do not know what is the problem here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 18:49:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/808394#M39771</guid>
      <dc:creator>OJohn_StaT</dc:creator>
      <dc:date>2022-04-18T18:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod Coefficient Value 0 and missing Z value on GEE parameter estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/808398#M39772</link>
      <description>&lt;P&gt;Always check the log for error or warning messages and mention all such messages when you post questions. This warning indicates that the procedure was not able to converge to a proper maximum likelihood solution. When that happens, GENMOD just displays the last iteration which may not be something you'd want to use. Model fitting problems are quite common with binary response models, usually because the data are too sparse to support the complexity of the specified model. I suggest you start with a simpler model. First, either remove the TYPE3 option or add the WALD option. Also, don't use the most complex correlation structure - replace TYPE=UN with TYPE=IND or TYPE=EXCH. If you still get errors or warnings, then simplify the model by reducing the number of predictors in the model, probably starting with the most important variable or two. If that fits successfully, then add a variable at a time. You might not be able to successfully use all of them.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 19:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/808398#M39772</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-04-18T19:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod Coefficient Value 0 and missing Z value on GEE parameter estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/808404#M39773</link>
      <description>&lt;P&gt;Thank you for your help again. Okay I will try your suggestions and I will share the results. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 19:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/808404#M39773</guid>
      <dc:creator>OJohn_StaT</dc:creator>
      <dc:date>2022-04-18T19:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod Coefficient Value 0 and missing Z value on GEE parameter estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/808677#M39796</link>
      <description>&lt;P&gt;I had progress. I remove the interaction between race and plan_1_enrolled and I also use&amp;nbsp;&lt;SPAN&gt;TYPE=IND instead of&amp;nbsp;TYPE=UN. Now I can get the estimates and Z values and Pr&amp;gt;|Z|. Thank you for the help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 20:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Coefficient-Value-0-and-missing-Z-value-on-GEE/m-p/808677#M39796</guid>
      <dc:creator>OJohn_StaT</dc:creator>
      <dc:date>2022-04-19T20:18:34Z</dc:date>
    </item>
  </channel>
</rss>

