<?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: Estimate two risk ratios with a predictor that has three levels in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Estimate-two-risk-ratios-with-a-predictor-that-has-three-levels/m-p/868660#M42955</link>
    <description>Many thanks. It works. Hongjie</description>
    <pubDate>Fri, 07 Apr 2023 19:36:19 GMT</pubDate>
    <dc:creator>hongjie76</dc:creator>
    <dc:date>2023-04-07T19:36:19Z</dc:date>
    <item>
      <title>Estimate two risk ratios with a predictor that has three levels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimate-two-risk-ratios-with-a-predictor-that-has-three-levels/m-p/868541#M42938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I try to use proc genmod to estimate two risk ratios because the predictor of smokes has three levels (never, current, and former smokers). Would you please tell me how to do that? Here is the SAS syntax I made. Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod ;&lt;BR /&gt;class seqn smokes /param=ref ref=first;&lt;BR /&gt;model lung_cancer=smokes /dist=poi link=log;&lt;BR /&gt;repeated subject=seqn;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 00:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimate-two-risk-ratios-with-a-predictor-that-has-three-levels/m-p/868541#M42938</guid>
      <dc:creator>hongjie76</dc:creator>
      <dc:date>2023-04-07T00:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Estimate two risk ratios with a predictor that has three levels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimate-two-risk-ratios-with-a-predictor-that-has-three-levels/m-p/868544#M42940</link>
      <description>&lt;P&gt;See &lt;A href="http://support.sas.com/kb/23003" target="_self"&gt;this note&lt;/A&gt; on estimating risk ratios (relative risks). As shown there, you can use PROC LOGISTIC with LSMEANS followed by the NLMeans macro or PROC GENMOD, again with an LSMEANS statement. Since the latter seems to be the approach you are taking, you just need to add an LSMEANS statement with the DIFF, EXP, and CL options (assuming you want confidence intervals). The LSMEANS statement will handle however many levels are in the predictor. But you will need to change PARAM=REF to PARAM=GLM to use the LSMEANS statement.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 02:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimate-two-risk-ratios-with-a-predictor-that-has-three-levels/m-p/868544#M42940</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-04-07T02:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Estimate two risk ratios with a predictor that has three levels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimate-two-risk-ratios-with-a-predictor-that-has-three-levels/m-p/868660#M42955</link>
      <description>Many thanks. It works. Hongjie</description>
      <pubDate>Fri, 07 Apr 2023 19:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimate-two-risk-ratios-with-a-predictor-that-has-three-levels/m-p/868660#M42955</guid>
      <dc:creator>hongjie76</dc:creator>
      <dc:date>2023-04-07T19:36:19Z</dc:date>
    </item>
  </channel>
</rss>

