<?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: Seeking help with the ESTIMATE function in PROC GENMOD in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Seeking-help-with-the-ESTIMATE-function-in-PROC-GENMOD/m-p/549355#M27423</link>
    <description>&lt;P&gt;You must specify all levels of a variable. Please use variable level information from the output to make sure you are correctly understanding the reference category. Hope the below code helps!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GENMOD DATA=TEST;

CLASS
ID
THERAPY (REF="0" PARAM=ref)
AGE_GROUP (REF="0" PARAM=ref)
SEX (REF="F PARAM=ref);

MODEL COMPLETION=THERAPY AGE_GROUP SEX/ DIST=poisson LINK=log;

REPEATED SUBJECT=ID/TYPE=EXCH COVB CORRW;

ESTIMATE 'THERAPY 0 v. 1' THERAPY 0 1/EXP;

ESTIMATE 'AGE_GROUP 0 v. 1' AGE_GROUP 0 1 0 0/EXP;
ESTIMATE 'AGE_GROUP 0 v. 2' AGE_GROUP 0 0 1 0/EXP;
ESTIMATE 'AGE_GROUP 0 v. 3' AGE_GROUP 0 0 0 1/EXP;

ESTIMATE 'SEX female v. male' SEX 0 1/EXP;

RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2019 17:46:50 GMT</pubDate>
    <dc:creator>Rajesh3</dc:creator>
    <dc:date>2019-04-08T17:46:50Z</dc:date>
    <item>
      <title>Seeking help with the ESTIMATE function in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Seeking-help-with-the-ESTIMATE-function-in-PROC-GENMOD/m-p/549303#M27421</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GENMOD DATA=TEST;

CLASS
ID
THERAPY (REF="0" PARAM=ref)
AGE_GROUP (REF="0" PARAM=ref)
SEX (REF="F PARAM=ref);

MODEL COMPLETION=THERAPY AGE_GROUP SEX/ DIST=poisson LINK=log;

REPEATED SUBJECT=ID/TYPE=EXCH COVB CORRW;

ESTIMATE 'THERAPY 0 v. 1' THERAPY 1/EXP;

ESTIMATE 'AGE_GROUP 0 v. 1' AGE_GROUP 1/EXP;
ESTIMATE 'AGE_GROUP 0 v. 2' AGE_GROUP 0 1/EXP;
ESTIMATE 'AGE_GROUP 0 v. 3' AGE_GROUP 0 0 1/EXP;

ESTIMATE 'SEX female v. male' SEX 1/EXP;

RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am trying to write the code for a model that will give me the relative risk of completion of a program based on whether or not you received THERAPY (dichotomous), which AGE_GROUP (4 levels) you were in, and your SEX (dichotomous). I am new to the ESTIMATE function, but I need to use GENMOD because this is to calculate the relative risk. My concern lies in whether or not I correctly codes the estimates for each predictor variable?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 15:13:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Seeking-help-with-the-ESTIMATE-function-in-PROC-GENMOD/m-p/549303#M27421</guid>
      <dc:creator>djohn051</dc:creator>
      <dc:date>2019-04-08T15:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Seeking help with the ESTIMATE function in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Seeking-help-with-the-ESTIMATE-function-in-PROC-GENMOD/m-p/549355#M27423</link>
      <description>&lt;P&gt;You must specify all levels of a variable. Please use variable level information from the output to make sure you are correctly understanding the reference category. Hope the below code helps!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GENMOD DATA=TEST;

CLASS
ID
THERAPY (REF="0" PARAM=ref)
AGE_GROUP (REF="0" PARAM=ref)
SEX (REF="F PARAM=ref);

MODEL COMPLETION=THERAPY AGE_GROUP SEX/ DIST=poisson LINK=log;

REPEATED SUBJECT=ID/TYPE=EXCH COVB CORRW;

ESTIMATE 'THERAPY 0 v. 1' THERAPY 0 1/EXP;

ESTIMATE 'AGE_GROUP 0 v. 1' AGE_GROUP 0 1 0 0/EXP;
ESTIMATE 'AGE_GROUP 0 v. 2' AGE_GROUP 0 0 1 0/EXP;
ESTIMATE 'AGE_GROUP 0 v. 3' AGE_GROUP 0 0 0 1/EXP;

ESTIMATE 'SEX female v. male' SEX 0 1/EXP;

RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 17:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Seeking-help-with-the-ESTIMATE-function-in-PROC-GENMOD/m-p/549355#M27423</guid>
      <dc:creator>Rajesh3</dc:creator>
      <dc:date>2019-04-08T17:46:50Z</dc:date>
    </item>
  </channel>
</rss>

