<?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 Syntax question in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Syntax-question/m-p/210037#M11356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create the following table below and am struggling on where to start:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mock Table1: Treatment Difference in the Headache rate during 90 , 180 and 270 days follow-up period&amp;nbsp; between treated Untreated group (using Poisson Regression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="640"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="4" height="22" style="border-right: 1.0pt solid black;" width="256"&gt;Headache Incidence Rate &lt;/TD&gt;&lt;TD class="xl69" colspan="3" style="border-right: 1.0pt solid black; border-left: none;" width="192"&gt;Unadjusted&lt;/TD&gt;&lt;TD class="xl69" colspan="3" style="border-right: 1.0pt solid black; border-left: none;" width="192"&gt;Adjusted&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" colspan="2" height="21" style="border-right: 1.0pt solid black;" width="128"&gt;Treated&lt;/TD&gt;&lt;TD class="xl71" colspan="2" style="border-right: 1.0pt solid black; border-left: none;" width="128"&gt;Not Treated&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;RR&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;95% CI&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;P value&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;RR&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;95% CI&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;P value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl73" colspan="2" height="22" style="border-right: 1.0pt solid black;" width="128"&gt;N=xxx&lt;/TD&gt;&lt;TD class="xl73" colspan="2" style="border-right: 1.0pt solid black; border-left: none;" width="128"&gt;N=xxx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="22" width="64"&gt;n&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;%&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;n&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="43" width="64"&gt;xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;x.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;x.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;xx.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;xx.xx-xx.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;.xxxx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;xx.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;xx.xx-xx.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;.xxxx&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;* there will be three rows in total one for 90 days one for 180 days and one for 270 days.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; line-height: 1.5em;"&gt;N=number of Subjects; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;RR=risk ratio (treated vs. untreated); CI=confidence interval for the RR; RR, 95% CI and p value are from the poisson model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;Unadjusted&amp;nbsp; model:&amp;nbsp; Headache rate = Exposure Group; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;Adjusted model: Headache rate&amp;nbsp; =Exposure Group + Age+ index year &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;I know (or think)&amp;nbsp; I have to use Proc Genmod , but I have never used this procedure before and I am unsure of the syntax used to&amp;nbsp; get the RR CI and P values, or the adjusted and unadjusted stats.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;The dataset I am using has the&amp;nbsp; all subjects&amp;nbsp; their exposure, age, index year , flag for headache (0/1) and headache diagnosis date. I am not bothered about the cosmetics of the table format tI can figure that bit out, it is the information inside the table that I need help with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;Any help would be gratefully received .&amp;nbsp; Many thanks in advance, Lisa.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2015 14:44:12 GMT</pubDate>
    <dc:creator>lisahoward</dc:creator>
    <dc:date>2015-03-25T14:44:12Z</dc:date>
    <item>
      <title>Proc Genmod Syntax question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Syntax-question/m-p/210037#M11356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create the following table below and am struggling on where to start:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mock Table1: Treatment Difference in the Headache rate during 90 , 180 and 270 days follow-up period&amp;nbsp; between treated Untreated group (using Poisson Regression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="640"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="4" height="22" style="border-right: 1.0pt solid black;" width="256"&gt;Headache Incidence Rate &lt;/TD&gt;&lt;TD class="xl69" colspan="3" style="border-right: 1.0pt solid black; border-left: none;" width="192"&gt;Unadjusted&lt;/TD&gt;&lt;TD class="xl69" colspan="3" style="border-right: 1.0pt solid black; border-left: none;" width="192"&gt;Adjusted&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" colspan="2" height="21" style="border-right: 1.0pt solid black;" width="128"&gt;Treated&lt;/TD&gt;&lt;TD class="xl71" colspan="2" style="border-right: 1.0pt solid black; border-left: none;" width="128"&gt;Not Treated&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;RR&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;95% CI&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;P value&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;RR&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;95% CI&lt;/TD&gt;&lt;TD class="xl75" rowspan="3" style="border-bottom: 1.0pt solid black; border-top: none;" width="64"&gt;P value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl73" colspan="2" height="22" style="border-right: 1.0pt solid black;" width="128"&gt;N=xxx&lt;/TD&gt;&lt;TD class="xl73" colspan="2" style="border-right: 1.0pt solid black; border-left: none;" width="128"&gt;N=xxx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="22" width="64"&gt;n&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;%&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;n&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="43" width="64"&gt;xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;x.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;x.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;xx.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;xx.xx-xx.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;.xxxx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;xx.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;xx.xx-xx.xx&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;.xxxx&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;* there will be three rows in total one for 90 days one for 180 days and one for 270 days.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; line-height: 1.5em;"&gt;N=number of Subjects; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;RR=risk ratio (treated vs. untreated); CI=confidence interval for the RR; RR, 95% CI and p value are from the poisson model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;Unadjusted&amp;nbsp; model:&amp;nbsp; Headache rate = Exposure Group; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;Adjusted model: Headache rate&amp;nbsp; =Exposure Group + Age+ index year &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;I know (or think)&amp;nbsp; I have to use Proc Genmod , but I have never used this procedure before and I am unsure of the syntax used to&amp;nbsp; get the RR CI and P values, or the adjusted and unadjusted stats.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;The dataset I am using has the&amp;nbsp; all subjects&amp;nbsp; their exposure, age, index year , flag for headache (0/1) and headache diagnosis date. I am not bothered about the cosmetics of the table format tI can figure that bit out, it is the information inside the table that I need help with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt;"&gt;Any help would be gratefully received .&amp;nbsp; Many thanks in advance, Lisa.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Syntax-question/m-p/210037#M11356</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-03-25T14:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod Syntax question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Syntax-question/m-p/210038#M11357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lisa, how many exposure groups do you have? Is it a categorical&lt;BR /&gt;variable? Is Age continuous?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you data are coded in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="padding: 0px 5.4pt; border: currentColor;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 0px 5.4pt; border: 1pt solid windowtext;" valign="top" width="169"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;Headache&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="162"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;Person&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="164"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;Exposure (Treated (2) Vs untreated (1)&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="156"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;Age&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="148"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;Year&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 5.4pt;" valign="top" width="169"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;1&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="162"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;1&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="164"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;1&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="156"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;29&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="148"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;2005&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 5.4pt;" valign="top" width="169"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;0&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="162"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;1&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="164"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;1&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="156"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;40&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="148"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;2001&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 5.4pt;" valign="top" width="169"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;1&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="162"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;1&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="164"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;2&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="156"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;45&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="148"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P&gt;2015&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you can do this to populate your table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;*to populate N fields;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;freq&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=datasetname;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;tables&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; Headache*Exposure;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;*Unadjusted RR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;genmod&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=datasetname &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;descending&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; Exposure ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; Headache =Exposure/ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;offset=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;Person &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;p&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;link&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=log &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;type3&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;estimate&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;' 1 Vs 2'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; Exposure &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; -&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;*Unadjusted RR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;genmod&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=datasetname &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;descending&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; Exposure Year;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; Headache =Exposure Age Year/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;offset&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=Person &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;p&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;link&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=log &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;type3&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;estimate&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;' 1 Vs 2'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; Exposure &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; -&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;*Adjusted RR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 14:18:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Syntax-question/m-p/210038#M11357</guid>
      <dc:creator>Lida</dc:creator>
      <dc:date>2015-03-27T14:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod Syntax question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Syntax-question/m-p/210039#M11358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thank you so much for your response.&amp;nbsp; There is one exposure group ( flag = 1) and one untreated group (flag =0).&amp;nbsp; Age is a continuous variable but i may have to add some discrete variables into the adjusted model such as various comorbids&amp;nbsp; e.g. Diabetes etc ( all have a 1 or 0&amp;nbsp; flag).&amp;nbsp; Would I just add these into the class line of the code and the model line of the code for the adjusted part? May I ask what the line of code does (in particular&amp;nbsp; the -1 bit?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: blue; background: white;"&gt;estimate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: purple; background: white;"&gt;' 1 Vs 2'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black; background: white;"&gt; Exposure &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Courier New'; color: teal; background: white;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black; background: white;"&gt; -&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Courier New'; color: teal; background: white;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: green; background: white;"&gt;*Adjusted RR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: green; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: green; background: white;"&gt;I really appreciate all your help and you taking the time to respond.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: green; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: green; background: white;"&gt;Many thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: green; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: green; background: white;"&gt;Lisa&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 17:44:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Syntax-question/m-p/210039#M11358</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-03-27T17:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod Syntax question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Syntax-question/m-p/210040#M11359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think if your variables are coded as dummy vars (1/0) than&lt;BR /&gt;you do not need to declare them in class statement. SAS will understand it.&lt;BR /&gt;Only Year than should be kept in class statement. In the case of dummy&lt;BR /&gt;variables I am not sure if this statement below will work (try it). This&lt;BR /&gt;statement allows to estimate a contrast (RR) : group 1 versus 2. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA;"&gt;estimate&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: #575757; font-family: 'Helvetica','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA; mso-bidi-font-family: 'Times New Roman';"&gt;&lt;SPAN lang="EN" style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA;"&gt;' 1 Vs 2' &lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA;"&gt;Exposure &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA;"&gt;1 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA;"&gt;-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 18:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Syntax-question/m-p/210040#M11359</guid>
      <dc:creator>Lida</dc:creator>
      <dc:date>2015-03-27T18:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod Syntax question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Syntax-question/m-p/210041#M11360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Apologises for the time delay with regards to my response but I have a quick question regarding the offset&amp;nbsp; statement which =Person.&amp;nbsp; What is the variable 'Person representing' Is this variable holding the total number of patients who had an outcome for that particular exposure? Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 07:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Syntax-question/m-p/210041#M11360</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-04-24T07:03:14Z</dc:date>
    </item>
  </channel>
</rss>

