<?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 How to compare the differences of relapse_count in proc genmod? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877006#M346456</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello, guys. I just learned SAS, and I have been puzzled for many days. I hope you can help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My data is the number of relapses(Y) in different treatment groups (group=1,2,3) , and I want to compare the difference in the number of relapses in different treatment groups under the least squares mean estimation. I used the lsmeans statement to compare the differences. I&lt;/SPAN&gt;t outputs the difference of the estimated coefficient(Beta1-Beta3, Beta2-Beta3). But I want to get the differences of Y.&lt;/P&gt;&lt;P&gt;my data is like:&lt;/P&gt;&lt;P&gt;id&amp;nbsp; &amp;nbsp;group&amp;nbsp; &amp;nbsp;relapse_count&amp;nbsp; &amp;nbsp;lntime&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&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; -1.108&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&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;-0.693&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&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;-3.218&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&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; -1.108&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my SAS codes:&lt;/P&gt;&lt;P&gt;proc genmod data=a;&lt;BR /&gt;class group(ref="3") id/param=glm;&lt;BR /&gt;model relapse_count=group/link=log dist=negbin offset=lntime;&lt;BR /&gt;repeated subject=id;&lt;BR /&gt;lsmeans group/cl ilink exp ;&lt;BR /&gt;estimate '2-1' group -1 1 0/exp;&lt;BR /&gt;estimate '1-3' group 1 0 -1/exp;&lt;BR /&gt;estimate '2-3' group 0 1 -1/exp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate it if you could help me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2023 07:43:17 GMT</pubDate>
    <dc:creator>Lucai_sister</dc:creator>
    <dc:date>2023-05-23T07:43:17Z</dc:date>
    <item>
      <title>How to compare the differences of relapse_count in proc genmod?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877006#M346456</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, guys. I just learned SAS, and I have been puzzled for many days. I hope you can help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My data is the number of relapses(Y) in different treatment groups (group=1,2,3) , and I want to compare the difference in the number of relapses in different treatment groups under the least squares mean estimation. I used the lsmeans statement to compare the differences. I&lt;/SPAN&gt;t outputs the difference of the estimated coefficient(Beta1-Beta3, Beta2-Beta3). But I want to get the differences of Y.&lt;/P&gt;&lt;P&gt;my data is like:&lt;/P&gt;&lt;P&gt;id&amp;nbsp; &amp;nbsp;group&amp;nbsp; &amp;nbsp;relapse_count&amp;nbsp; &amp;nbsp;lntime&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&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; -1.108&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&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;-0.693&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&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;-3.218&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&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; -1.108&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my SAS codes:&lt;/P&gt;&lt;P&gt;proc genmod data=a;&lt;BR /&gt;class group(ref="3") id/param=glm;&lt;BR /&gt;model relapse_count=group/link=log dist=negbin offset=lntime;&lt;BR /&gt;repeated subject=id;&lt;BR /&gt;lsmeans group/cl ilink exp ;&lt;BR /&gt;estimate '2-1' group -1 1 0/exp;&lt;BR /&gt;estimate '1-3' group 1 0 -1/exp;&lt;BR /&gt;estimate '2-3' group 0 1 -1/exp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate it if you could help me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 07:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877006#M346456</guid>
      <dc:creator>Lucai_sister</dc:creator>
      <dc:date>2023-05-23T07:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the differences of relapse_count in proc genmod?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877057#M346474</link>
      <description>&lt;A href="http://support.sas.com/kb/24/188.html" target="_blank"&gt;http://support.sas.com/kb/24/188.html&lt;/A&gt;</description>
      <pubDate>Tue, 23 May 2023 11:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877057#M346474</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-05-23T11:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the differences of relapse_count in proc genmod?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877058#M346475</link>
      <description>If you want RiskDiff ,check this url:&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/37/228.html" target="_blank"&gt;https://support.sas.com/kb/37/228.html&lt;/A&gt;</description>
      <pubDate>Tue, 23 May 2023 11:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877058#M346475</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-05-23T11:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the differences of relapse_count in proc genmod?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877126#M346513</link>
      <description>Thank you for your reply, which makes it more clear that what I want to ask for is the rate rather than the count difference. But I don't know why the NLMeans macro is used. In my opinion it is just more convenient to call. Does it help to find the difference in rates? Thank you very much for your guidance.</description>
      <pubDate>Tue, 23 May 2023 17:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877126#M346513</guid>
      <dc:creator>Lucai_sister</dc:creator>
      <dc:date>2023-05-23T17:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the differences of relapse_count in proc genmod?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877245#M346560</link>
      <description>Then check my second URL.</description>
      <pubDate>Wed, 24 May 2023 11:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877245#M346560</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-05-24T11:31:53Z</dc:date>
    </item>
  </channel>
</rss>

