<?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 Stratified analysis using proc genmod in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Stratified-analysis-using-proc-genmod/m-p/920444#M362510</link>
    <description>&lt;P&gt;I'm trying to do a stratified analysis (by sex) using proc genmod. But it always gives error message, no matter I used "by" or make male/female in separate datasets:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;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.
WARNING: Output 'Estimates' was not created.  Make sure that the output object name, label, or path is
         spelled correctly.  Also, verify that the appropriate procedure options are used to produce the
         requested output object.  For example, verify that the NOPRINT option is not used.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The code I use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=temp  descending;&lt;BR /&gt;by sex;
class id;
model qtsmo=agecat byear medication/ dist=poisson link=log;
repeated subject=id/type=ind;
estimate 'RR medication vs. non-medication' medication 1 /exp;
ods output Estimates=outtab;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is it possible to do stratified analysis using proc genmod? What might be potential solution in my case? Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 14:05:35 GMT</pubDate>
    <dc:creator>zihdonv19</dc:creator>
    <dc:date>2024-03-15T14:05:35Z</dc:date>
    <item>
      <title>Stratified analysis using proc genmod</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-analysis-using-proc-genmod/m-p/920444#M362510</link>
      <description>&lt;P&gt;I'm trying to do a stratified analysis (by sex) using proc genmod. But it always gives error message, no matter I used "by" or make male/female in separate datasets:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;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.
WARNING: Output 'Estimates' was not created.  Make sure that the output object name, label, or path is
         spelled correctly.  Also, verify that the appropriate procedure options are used to produce the
         requested output object.  For example, verify that the NOPRINT option is not used.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The code I use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=temp  descending;&lt;BR /&gt;by sex;
class id;
model qtsmo=agecat byear medication/ dist=poisson link=log;
repeated subject=id/type=ind;
estimate 'RR medication vs. non-medication' medication 1 /exp;
ods output Estimates=outtab;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is it possible to do stratified analysis using proc genmod? What might be potential solution in my case? Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 14:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-analysis-using-proc-genmod/m-p/920444#M362510</guid>
      <dc:creator>zihdonv19</dc:creator>
      <dc:date>2024-03-15T14:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified analysis using proc genmod</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-analysis-using-proc-genmod/m-p/920480#M362515</link>
      <description>&lt;P&gt;What I want to estimate is:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;When sex=male, medication group vs. non-medication group, RR=...&lt;/P&gt;
&lt;P&gt;When sex=female, medication group vs. non-mediaction group, RR=...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 15 Mar 2024 16:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-analysis-using-proc-genmod/m-p/920480#M362515</guid>
      <dc:creator>zihdonv19</dc:creator>
      <dc:date>2024-03-15T16:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified analysis using proc genmod</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-analysis-using-proc-genmod/m-p/920633#M362598</link>
      <description>&lt;P&gt;It seems that your data is unable to do a Poisson Model for SEX='XXX' , maybe it is small or sparse.&lt;/P&gt;
&lt;P&gt;Anyway, calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 06:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-analysis-using-proc-genmod/m-p/920633#M362598</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-03-18T06:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified analysis using proc genmod</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-analysis-using-proc-genmod/m-p/920781#M362652</link>
      <description>&lt;P&gt;Questions about statistical procedures will get more attention from statisticians if you post them in the Statistical Procedures community under Analytics.&lt;/P&gt;
&lt;P&gt;This could be the same problem, similar to sparseness in logistic models, as described for Poisson models in &lt;A href="http://support.sas.com/kb/57127" target="_self"&gt;this note&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to estimate relative risks, your GENMOD approach is described in &lt;A href="http://support.sas.com/kb/23003" target="_self"&gt;this note&lt;/A&gt; but other methods are also shown. If the problem is not related to the problem in the previously mentioned note, then perhaps one of those other methods will work.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 16:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-analysis-using-proc-genmod/m-p/920781#M362652</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-03-18T16:22:25Z</dc:date>
    </item>
  </channel>
</rss>

