<?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 error in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258273#M13660</link>
    <description>&lt;P&gt;Are there any other NOTES or WARNINGS in the log? For example, do you see either of these?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: The number of response pairs for estimating correlation is less&lt;/P&gt;
&lt;P&gt;than or equal to the number of regression parameters. A simpler&lt;/P&gt;
&lt;P&gt;correlation model might be more appropriate.&lt;/P&gt;
&lt;P&gt;WARNING: The generalized Hessian matrix is not positive definite.&lt;/P&gt;
&lt;P&gt;Iteration will be terminated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2016 17:15:55 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-03-22T17:15:55Z</dc:date>
    <item>
      <title>proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258257#M13656</link>
      <description>&lt;P&gt;I have used this programming code&lt;/P&gt;&lt;P&gt;proc gemod data=postalcode descending ; class Nam postcode (param = ref ref='rural' ;&lt;/P&gt;&lt;P&gt;model Dep1month=postcode / link=logit dist=binomial ;&lt;/P&gt;&lt;P&gt;repeated subject =Nam /type=&amp;nbsp; exch;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had this error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error in computing the variance function&lt;/P&gt;&lt;P&gt;error in parameter estimate covarince computation&lt;/P&gt;&lt;P&gt;error in estimation routine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to fix this problem by steps please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sherief&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Universite de montreal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258257#M13656</guid>
      <dc:creator>sheriefsalah</dc:creator>
      <dc:date>2016-03-22T16:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258269#M13658</link>
      <description>&lt;P&gt;Start by closing the parentheses on the CLASS statement.&amp;nbsp; Do you still get an error?&lt;/P&gt;
&lt;P&gt;Also, spell GENMOD correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258269#M13658</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-22T17:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258271#M13659</link>
      <description>&lt;P&gt;I close it but stil have the same problem. Do you have&amp;nbsp; a fix to this problem in steps how can i remove these errors please&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258271#M13659</guid>
      <dc:creator>sheriefsalah</dc:creator>
      <dc:date>2016-03-22T17:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258273#M13660</link>
      <description>&lt;P&gt;Are there any other NOTES or WARNINGS in the log? For example, do you see either of these?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: The number of response pairs for estimating correlation is less&lt;/P&gt;
&lt;P&gt;than or equal to the number of regression parameters. A simpler&lt;/P&gt;
&lt;P&gt;correlation model might be more appropriate.&lt;/P&gt;
&lt;P&gt;WARNING: The generalized Hessian matrix is not positive definite.&lt;/P&gt;
&lt;P&gt;Iteration will be terminated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258273#M13660</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-22T17:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258276#M13661</link>
      <description>&lt;P&gt;No i have only the errors stated in the first comment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258276#M13661</guid>
      <dc:creator>sheriefsalah</dc:creator>
      <dc:date>2016-03-22T17:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258278#M13662</link>
      <description>&lt;P&gt;i have this warning when&amp;nbsp; changed the dependent variable :&lt;/P&gt;&lt;P&gt;WARNING: The generalized Hessian matrix is not positive definite.&lt;/P&gt;&lt;P&gt;Iteration will be terminated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there is sloution for this ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258278#M13662</guid>
      <dc:creator>sheriefsalah</dc:creator>
      <dc:date>2016-03-22T17:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258280#M13663</link>
      <description>&lt;P&gt;Most likely it is something related to your data. Can you post the data or at least provide the results of&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc freq data=postalcode ;
tables Dep1month*postcode / norow nocol nopercent nocum;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258280#M13663</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-22T17:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258283#M13664</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dep 1month&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Postcode (frequency)&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Y&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;N&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;total&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;missing&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;10&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;10&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Rural&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;181&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;42127&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;42308&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;urbain&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;955&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;189304&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;190259&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;232577&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258283#M13664</guid>
      <dc:creator>sheriefsalah</dc:creator>
      <dc:date>2016-03-22T17:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258294#M13665</link>
      <description>&lt;P&gt;I'm confused.&amp;nbsp;The&amp;nbsp;dependent variable should have two levels.&amp;nbsp; Is "missnig" a level in the data, or did you specify an option in PROC FREQ to make that entry appear?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is really in the data, put the statement&lt;/P&gt;
&lt;P&gt;WHERE postcode ^= "missing";&lt;/P&gt;
&lt;P&gt;in your PROC GENMOD call.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258294#M13665</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-22T17:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258298#M13666</link>
      <description>&lt;P&gt;my dependent variable here is depression yes or no (binary) while my indepnedent variable is postcode i have 3 levels like you see rural, urbain&amp;nbsp; and missing . my question is why there is an error when i did proc genmode ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258298#M13666</guid>
      <dc:creator>sheriefsalah</dc:creator>
      <dc:date>2016-03-22T17:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258308#M13667</link>
      <description>&lt;P&gt;Sorry. In my last post I&amp;nbsp;confused the dependent and independent variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect the problem is that you have a level of the INdependent variable (missing) for which the response is constant. Get rid of that level, as I suggested. You will be omitting 10 of 232,000 observations.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:09:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258308#M13667</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-22T18:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258309#M13668</link>
      <description>after that what should i do ?</description>
      <pubDate>Tue, 22 Mar 2016 18:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258309#M13668</guid>
      <dc:creator>sheriefsalah</dc:creator>
      <dc:date>2016-03-22T18:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258318#M13669</link>
      <description>&lt;P&gt;Then run the procedure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=postalcode descending; 
   WHERE postcode ^= "missing";
   class Nam postcode (param=ref ref='rural'); 
   model Dep1month=postcode / link=logit dist=binomial ;
   repeated subject =Nam / type=exch;
run ;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258318#M13669</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-22T18:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258320#M13670</link>
      <description>&lt;P&gt;error : invalid reference value for postcode&lt;/P&gt;&lt;P&gt;error no valid observation due to invalid or missing values in the response, explanatory offset , frequency or weight variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after i did ur programation code.&amp;nbsp; how can i solve that &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:37:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258320#M13670</guid>
      <dc:creator>sheriefsalah</dc:creator>
      <dc:date>2016-03-22T18:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258322#M13671</link>
      <description>&lt;P&gt;I'm not going to debug your program for you, but I will give you one last hint:&lt;/P&gt;
&lt;P&gt;1) Read the error message, which says "invalid reference value."&lt;/P&gt;
&lt;P&gt;2) Look back at the PROC FREQ output for the POSTCODE variable&lt;/P&gt;
&lt;P&gt;3) Remember that string comparison is case SENSITIVE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-error/m-p/258322#M13671</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-22T18:43:21Z</dc:date>
    </item>
  </channel>
</rss>

