<?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: How to compare the differences of relapse_count in proc genmod? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877277#M43384</link>
    <description>&lt;P&gt;As noted in red at the top of the documentation for the &lt;A href="http://support.sas.com/kb/62362" target="_self"&gt;NLMeans&lt;/A&gt; and &lt;A href="http://support.sas.com/kb/58775" target="_self"&gt;NLEST&lt;/A&gt; macros, these macros should be directly callable in SAS 9.4M6 or later. But if, for some reason, either of these is not found, then they can be downloaded and defined in your SAS session as discussed at the links provided above. Note that the NLMeans macro calls the NLEST macro so both are needed. You can check their availability in your SAS session and check their versions using the following calls. I suggest using the latest versions which, as noted in their documentation, are 1.9 for NLEST and 1.4 for NLMeans.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%nlest(v)
%nlmeans(v)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 24 May 2023 13:59:46 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2023-05-24T13:59:46Z</dc:date>
    <item>
      <title>How to compare the differences of relapse_count in proc genmod?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877003#M43373</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, everyone. 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, 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;obs&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;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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 07:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877003#M43373</guid>
      <dc:creator>Lucai_sister</dc:creator>
      <dc:date>2023-05-23T07:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the differences of relapse_count in proc genmod?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877075#M43374</link>
      <description>&lt;P&gt;Since you use an offset, your model is actually on a rate rather than a count. If what you want is to estimate and test the difference in rates, then you can use the NLMeans macro as shown in &lt;A href="http://support.sas.com/kb/37344" target="_self"&gt;this note&lt;/A&gt;. If you really want to compare the counts only (the numerators of the rates), then that will depend on the value of the offset. You could do that using the NLEST/NLEstimate macro (also shown in the above note), but you would need to include, in each EXP() expression, the desired offset variable value at which you want to compute the difference.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 14:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877075#M43374</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-05-23T14:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the differences of relapse_count in proc genmod?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877194#M43379</link>
      <description>&lt;P&gt;Thank &lt;A href="mailto:you@StaDave." target="_blank"&gt;you@StaDave.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;The link contains the answer I want. But when I run the NLmeans code, I get a WARNING: No call to parse macro "NLMEANS".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Being a beginner, I don't quite know the solution to this problem. Can you help me?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 04:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877194#M43379</guid>
      <dc:creator>Lucai_sister</dc:creator>
      <dc:date>2023-05-24T04:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the differences of relapse_count in proc genmod?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877195#M43380</link>
      <description>I'm sorry I typed your name wrong.&lt;BR /&gt;Thank@StatDave.</description>
      <pubDate>Wed, 24 May 2023 04:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877195#M43380</guid>
      <dc:creator>Lucai_sister</dc:creator>
      <dc:date>2023-05-24T04:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the differences of relapse_count in proc genmod?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877277#M43384</link>
      <description>&lt;P&gt;As noted in red at the top of the documentation for the &lt;A href="http://support.sas.com/kb/62362" target="_self"&gt;NLMeans&lt;/A&gt; and &lt;A href="http://support.sas.com/kb/58775" target="_self"&gt;NLEST&lt;/A&gt; macros, these macros should be directly callable in SAS 9.4M6 or later. But if, for some reason, either of these is not found, then they can be downloaded and defined in your SAS session as discussed at the links provided above. Note that the NLMeans macro calls the NLEST macro so both are needed. You can check their availability in your SAS session and check their versions using the following calls. I suggest using the latest versions which, as noted in their documentation, are 1.9 for NLEST and 1.4 for NLMeans.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%nlest(v)
%nlmeans(v)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 May 2023 13:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-the-differences-of-relapse-count-in-proc-genmod/m-p/877277#M43384</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-05-24T13:59:46Z</dc:date>
    </item>
  </channel>
</rss>

