<?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 Proc genmod - how to resolve error messages in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-how-to-resolve-error-messages/m-p/33607#M1389</link>
    <description>I have a data set that contains ~180,000 records, depicting the followup time from study recruitment until hospitalisation over a 10 year period.  Hence, there are multiple records per person - each person-specific record restarts counting person time at risk from the time of release from one hospitalisation until the next hospitalisation (or study end).   I am trying to determine whether the rate of hospitalisation (hosp_flag = 0/1) varies by body mass index after adjusting for age.  Here's my syntax for calculating the rate of hospitalisation. &lt;BR /&gt;
&lt;BR /&gt;
PROC GENMOD DATA = temp1;&lt;BR /&gt;
	ODS OUTPUT ParameterEstimates = results;&lt;BR /&gt;
	CLASS bmi_cat id;&lt;BR /&gt;
	MODEL hosp_flag = bmi_cat age_year / DIST = poisson LINK = log OFFSET =        logpyr TYPE3 SCALE = deviance WALD;&lt;BR /&gt;
	REPEATED subject = id / TYPE = AR; &lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
The syntax is running but generating the following errors, which I think are coming from the TYPE = AR option:  &lt;BR /&gt;
&lt;BR /&gt;
ERROR:  Error in computing inverse link function.&lt;BR /&gt;
ERROR: Error in parameter estimate covariance computation.&lt;BR /&gt;
ERROR: Error in estimation routine.&lt;BR /&gt;
&lt;BR /&gt;
The same errors arise if I specify TYPE as exchangeable rather than autorgressive.  Does someone know what I am doing wrong?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance.</description>
    <pubDate>Tue, 19 May 2009 07:42:54 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-05-19T07:42:54Z</dc:date>
    <item>
      <title>Proc genmod - how to resolve error messages</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-how-to-resolve-error-messages/m-p/33607#M1389</link>
      <description>I have a data set that contains ~180,000 records, depicting the followup time from study recruitment until hospitalisation over a 10 year period.  Hence, there are multiple records per person - each person-specific record restarts counting person time at risk from the time of release from one hospitalisation until the next hospitalisation (or study end).   I am trying to determine whether the rate of hospitalisation (hosp_flag = 0/1) varies by body mass index after adjusting for age.  Here's my syntax for calculating the rate of hospitalisation. &lt;BR /&gt;
&lt;BR /&gt;
PROC GENMOD DATA = temp1;&lt;BR /&gt;
	ODS OUTPUT ParameterEstimates = results;&lt;BR /&gt;
	CLASS bmi_cat id;&lt;BR /&gt;
	MODEL hosp_flag = bmi_cat age_year / DIST = poisson LINK = log OFFSET =        logpyr TYPE3 SCALE = deviance WALD;&lt;BR /&gt;
	REPEATED subject = id / TYPE = AR; &lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
The syntax is running but generating the following errors, which I think are coming from the TYPE = AR option:  &lt;BR /&gt;
&lt;BR /&gt;
ERROR:  Error in computing inverse link function.&lt;BR /&gt;
ERROR: Error in parameter estimate covariance computation.&lt;BR /&gt;
ERROR: Error in estimation routine.&lt;BR /&gt;
&lt;BR /&gt;
The same errors arise if I specify TYPE as exchangeable rather than autorgressive.  Does someone know what I am doing wrong?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance.</description>
      <pubDate>Tue, 19 May 2009 07:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-how-to-resolve-error-messages/m-p/33607#M1389</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-19T07:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - how to resolve error messages</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-how-to-resolve-error-messages/m-p/33608#M1390</link>
      <description>Hi Persistence,&lt;BR /&gt;
&lt;BR /&gt;
Hmmm... I suspect the problem is not in TYPE=AR option but in your response variable hosp_flag. It takes values 0 or 1 i.e. it's dichotomous, yet you say it's the rate of hospitalization and you model it with Poisson distribution... I would think that either different response variable should be used or different DIST and LINK...</description>
      <pubDate>Tue, 19 May 2009 20:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-how-to-resolve-error-messages/m-p/33608#M1390</guid>
      <dc:creator>statsplank</dc:creator>
      <dc:date>2009-05-19T20:12:22Z</dc:date>
    </item>
  </channel>
</rss>

