<?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 with categorical covariates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-genmod-with-categorical-covariates/m-p/920489#M362518</link>
    <description>&lt;P&gt;I want to fit a model below, where edu is a 3-level variable, cou is a binary variable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=cohort descending;
class id edu (ref='1');
model cou=edu female / dist=poisson link=log;
repeated subject=id/type=ind;
estimate 'edu 2 vs. edu 1' edu 0 1 0;
estimate 'edu 3 vs. edu 1' edu 0 0 1;
ods output Estimates=outtab;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;But the results viewer showed "Non-est" in the contrast estimate results table. I found people always refer to this note (&lt;A href="https://support.sas.com/kb/24/447.html)" target="_blank"&gt;https://support.sas.com/kb/24/447.html)&lt;/A&gt;&amp;nbsp;for relevant questions, but I felt so lost after reading this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just want to know:&lt;/P&gt;
&lt;P&gt;edu 3 vs. edu 1, RR=....95%CI=...&lt;/P&gt;
&lt;P&gt;edu 2vs. edu 1, RR=....95%CI=...&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 17:55:05 GMT</pubDate>
    <dc:creator>zihdonv19</dc:creator>
    <dc:date>2024-03-15T17:55:05Z</dc:date>
    <item>
      <title>Proc genmod with categorical covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-genmod-with-categorical-covariates/m-p/920489#M362518</link>
      <description>&lt;P&gt;I want to fit a model below, where edu is a 3-level variable, cou is a binary variable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=cohort descending;
class id edu (ref='1');
model cou=edu female / dist=poisson link=log;
repeated subject=id/type=ind;
estimate 'edu 2 vs. edu 1' edu 0 1 0;
estimate 'edu 3 vs. edu 1' edu 0 0 1;
ods output Estimates=outtab;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;But the results viewer showed "Non-est" in the contrast estimate results table. I found people always refer to this note (&lt;A href="https://support.sas.com/kb/24/447.html)" target="_blank"&gt;https://support.sas.com/kb/24/447.html)&lt;/A&gt;&amp;nbsp;for relevant questions, but I felt so lost after reading this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just want to know:&lt;/P&gt;
&lt;P&gt;edu 3 vs. edu 1, RR=....95%CI=...&lt;/P&gt;
&lt;P&gt;edu 2vs. edu 1, RR=....95%CI=...&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 17:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-genmod-with-categorical-covariates/m-p/920489#M362518</guid>
      <dc:creator>zihdonv19</dc:creator>
      <dc:date>2024-03-15T17:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod with categorical covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-genmod-with-categorical-covariates/m-p/920504#M362524</link>
      <description>&lt;P&gt;Use the LSMEANS command in PROC GENMOD, with the DIFF and CL options.&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_genmod_syntax20.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_genmod_syntax20.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 19:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-genmod-with-categorical-covariates/m-p/920504#M362524</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-03-15T19:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod with categorical covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-genmod-with-categorical-covariates/m-p/920628#M362594</link>
      <description>Check this:&lt;BR /&gt;&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;&lt;BR /&gt;&lt;BR /&gt;I guessed you should code something like:&lt;BR /&gt;&lt;BR /&gt;proc genmod data=cohort descending;&lt;BR /&gt;class id edu ;&lt;BR /&gt;model cou=edu female / dist=poisson link=log;&lt;BR /&gt;repeated subject=id/type=ind;&lt;BR /&gt;estimate 'edu 2 vs. edu 1' edu -1 1 0 /cl ;&lt;BR /&gt;estimate 'edu 3 vs. edu 1' edu -1 0 1;&lt;BR /&gt;ods output Estimates=outtab;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Check :&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/24/447.html" target="_blank"&gt;https://support.sas.com/kb/24/447.html&lt;/A&gt;</description>
      <pubDate>Mon, 18 Mar 2024 05:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-genmod-with-categorical-covariates/m-p/920628#M362594</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-03-18T05:00:03Z</dc:date>
    </item>
  </channel>
</rss>

