<?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: Proc GENMOD  Class question in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204031#M10959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jacob I created an offset variable and then included it in my procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=IRsforCohort;&lt;/P&gt;&lt;P&gt;class Exposure &amp;amp;covariates ;&lt;/P&gt;&lt;P&gt;model outcome=Exposure &amp;amp;covariates Age_At_Index IndexYear /&amp;nbsp; dist = poisson&amp;nbsp; offset=myoffset link=log&amp;nbsp; type3; &lt;/P&gt;&lt;P&gt; Estimate ' 1 Vs 0' Exposure 1 -1 ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output Estimates=RR&amp;amp;infile._adj;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title1 "Proc GENMOD for Adjusted &amp;amp;infile &amp;amp;time";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the IR variable I had created in a previous data step and now use the Outcome variable instead so have outcome=Exposure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following results. In your opinion you think I should use the Mean rather than the LBeta variables to show relative risk for &lt;/P&gt;&lt;P&gt;Treatment Difference in Headache rate during 90 days follow-up period for &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;treated and untreated group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Contrast Estimate Results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mean&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mean&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L'Beta&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L'Beta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chi-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Estimate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Confidence Limits&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Estimate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alpha&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Confidence Limits&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Square&amp;nbsp;&amp;nbsp;&amp;nbsp; Pr &amp;gt; ChiSq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 Vs 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; 0.9714&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5534&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.7049&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0291&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.2870&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.05&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.5916&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5335&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;0.9194&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Apr 2015 05:34:47 GMT</pubDate>
    <dc:creator>lisahoward</dc:creator>
    <dc:date>2015-04-26T05:34:47Z</dc:date>
    <item>
      <title>Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204017#M10945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate the RR using Poisson regression for a cohort of patients (treated=1, untreated=0) who have an outcome of X using the following Syntax.&amp;nbsp; i have calculated the IR rate by exposure&amp;nbsp; in a previous datastep as I need to call it in to use in the model data line in this procedure.&amp;nbsp; The model is adjusted with some&amp;nbsp; specified 0/1 covariates which I call in using the&amp;nbsp; &amp;amp;covariates statement.&amp;nbsp; I also need to include two other variables as covariates Age_At_Index and Index_Year.&amp;nbsp; My question is do I need to put them in the Class statement?&amp;nbsp; The model looks at Incidence Rate = Exposure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;proc genmod data=IRsforCohort;&lt;/P&gt;&lt;P&gt;class Exposure IndexYear Age_At_Index;&lt;/P&gt;&lt;P&gt;model IR=Exposure &amp;amp;covariates /&amp;nbsp; dist = poisson&amp;nbsp; link=log type3; &lt;/P&gt;&lt;P&gt;estimate ' 1 Vs 0' Exposure 1 -1 ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output ParameterEstimates=RR&amp;amp;infile._adj;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title1 "Proc GENMOD for Adjusted";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 06:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204017#M10945</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-04-25T06:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204018#M10946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. If I understood right, you should put all the explanation variables into CLASS for calculating RATIO .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 08:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204018#M10946</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-25T08:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204019#M10947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so I would put the &amp;amp;covariates in the class statement as well?&amp;nbsp; I had understood I only needed to put continuous variables&amp;nbsp; (such as Age and Year in the class statement) and then any other covariates that were categorical did not need to be listed in the class statement. The &amp;amp;covariates contains Age and Year as well as all the 0/1 answered variables as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 10:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204019#M10947</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-04-25T10:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204020#M10948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, its opposite.&lt;/P&gt;&lt;P&gt;Continous variables should not be included in the class statement.&lt;/P&gt;&lt;P&gt;Categorical variables should be included in the class statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 11:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204020#M10948</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-04-25T11:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204021#M10949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacob,&lt;/P&gt;&lt;P&gt;OP is doing a mode for estimating rate and rate ratio by Possion Regression.&lt;/P&gt;&lt;P&gt;Check the following url .Note its AGE is included in CLASS statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/kb/24/188.html" title="http://support.sas.com/kb/24/188.html"&gt;http://support.sas.com/kb/24/188.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 13:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204021#M10949</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-25T13:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204022#M10950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is whether or not contionous variables should be included in the CLASS statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a variable is not included in the class statement you assume that the log(mean) increase proportional with the variable. This is meaningful for contionous variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the variable is included in the class statement the log(mean) will be different for each level of the variable without any assumptions about linear slope. Therefore, one parameter for each level of the variable. If the variable truely is contious there will be as many parameters as there are observations, which is not meaninfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If age or weight is measured exact then it is contious and can not be included in class. If the are grouped (Young/old or low/heavy) then they can be included in class. This is not special for Poisson regression, same rule apply to most other regression models.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 14:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204022#M10950</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-04-25T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204023#M10951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will modify the syntax to include all categorical variables in the class statement only and then in the model statement i will include the categorical variables + age and year of index.&amp;nbsp; I appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I ask your advice on the offset option please.&amp;nbsp; Should I include this , I am unsure what and how this will effect the RR. The question I am trying to answer or the RR I am trying to get is based on the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Treatment Difference in the Diagnosis (Headache) Incidence rate , during the&amp;nbsp; follow-up period (defined as 90 days) &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;between treated and untreated group.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing both unadjusted and adjusted Relative Rates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also should I be displaying&amp;nbsp; the LBETA estimate value or the mean estimate value in my report to represent&amp;nbsp; the RR value?&amp;nbsp; I apologise I am not a statistician so any advice is truly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 14:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204023#M10951</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-04-25T14:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204024#M10952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a offset=log(personyears) and put it as an offset in the model statement. It is neccessary because the number of event in average is proportional with person-years.&lt;/P&gt;&lt;P&gt;That Means (in average) events=exp(Xβ)*personyears,&lt;/P&gt;&lt;P&gt;take log on both sides gives Log(events)=Xβ)+log(personyears). For this reason, log(personyears) should be used as offset. Without the offset variable your results will be wrong and nonsense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think most non-statisticians will not be interested in the Lbeta estimate, but only estimate of rates and rate-ratios. With confidenceintervals ofcourse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have precise entry and exit information on you study-individuals, then I will recommend Cox-regression instead of Poisson regression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 15:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204024#M10952</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-04-25T15:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204025#M10953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I go about creating &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;offset=log(personyears). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; This is my current syntax:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;proc genmod data=IRsforCohort;&lt;/P&gt;&lt;P&gt;class TestRx &amp;amp;covariates ;&lt;/P&gt;&lt;P&gt;model IR=TestRX &amp;amp;covariates Age_At_Index IndexYear /&amp;nbsp; dist = poisson&amp;nbsp; link=log&amp;nbsp; type3; &lt;/P&gt;&lt;P&gt; Estimate ' 1 Vs 0' testrx 1 -1 ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output Estimates=RR&amp;amp;infile._adj;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title1 "Proc GENMOD for Adjusted &amp;amp;infile &amp;amp;time";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I just add (in bold):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;proc genmod data=IRsforCohort;&lt;/P&gt;&lt;P&gt;class TestRx &amp;amp;covariates ;&lt;/P&gt;&lt;P&gt;model IR=TestRX &amp;amp;covariates Age_At_Index IndexYear /&amp;nbsp; dist = poisson&amp;nbsp; &lt;STRONG&gt;offset= personyear&lt;/STRONG&gt;s link=log&amp;nbsp; type3; &lt;/P&gt;&lt;P&gt; Estimate ' 1 Vs 0' testrx 1 -1 ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output Estimates=RR&amp;amp;infile._adj;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title1 "Proc GENMOD for Adjusted &amp;amp;infile &amp;amp;time";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 15:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204025#M10953</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-04-25T15:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204026#M10954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The offset variable should be made in a datastep before PROC GENMOD. It can be that "person-years" is not the right Word, but it should be a variable that measure how much observation time you have on each observation. Lets say you have an entry and exit time on each individual, then you create the offset like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data irsforcohort;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set irsforcohort;&lt;/P&gt;&lt;P&gt;&amp;nbsp; myoffset=log(exit-entry);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the model statement in the genmod:&lt;/P&gt;&lt;P&gt;model IR=TestRX &amp;amp;covariates Age_At_Index IndexYear /&amp;nbsp; dist = poisson&amp;nbsp; link=log&amp;nbsp; type3 offset=myoffset; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have equally much observationtime on each observation then you can omit the offset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 15:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204026#M10954</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-04-25T15:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204027#M10955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great thank you so much I am very appreciatl=ive of the time you have taken to answer my questions.&amp;nbsp; I already created person years in a previous data step so that I could calculate the Incidence rate of the outcome.&amp;nbsp;&amp;nbsp;&amp;nbsp; I use the IR in the model statement:&lt;/P&gt;&lt;P&gt;IR=Exposure .&amp;nbsp; So I&amp;nbsp; will include the Person years variable in the offset option.&amp;nbsp; I presume I am correct in ssuming it should be IR=Exposure and not Outcome=Exposure as the spec wording I am going off in the protocol is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unadjusted model: Headace rate = Exposure;&lt;/P&gt;&lt;P&gt;Adjusted model: AMI rate =Exposure Group + Age+ index&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;year + baseline risk factors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Headache rate is Incidence Rate and not Outcome .?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 16:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204027#M10955</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-04-25T16:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204028#M10956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no. not person years in offset.&amp;nbsp; &lt;STRONG&gt;LOG(&lt;/STRONG&gt;personyears) in offset.&lt;BR /&gt;and, on the left side of the "=" you should have number of events, which I assume is the outcome variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 16:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204028#M10956</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-04-25T16:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204029#M10957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to bother you again.&amp;nbsp; I put the syntaxwith outcome=EXPOSURE&amp;nbsp; instead or IR=EXPOSURE to the left of =, But i think i have the '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;offset=log(PersonYrs'' bit wrong as I get an error. Please can you help, I have created PersonYrs so this variable exists in the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;IRsforCohort dataset.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=IRsforCohort;&lt;/P&gt;&lt;P&gt;class &lt;SPAN style="font-size: 13.3333330154419px;"&gt;EXPOSURE&lt;/SPAN&gt; &amp;amp;covariates ;&lt;/P&gt;&lt;P&gt;model outcome=&lt;SPAN style="font-size: 13.3333330154419px;"&gt;EXPOSURE&lt;/SPAN&gt; &amp;amp;covariates Age_At_Index IndexYear /&amp;nbsp; dist = poisson&amp;nbsp; offset=log(PersonYrs) link=log&amp;nbsp; type3; &lt;/P&gt;&lt;P&gt; Estimate ' 1 Vs 0' &lt;SPAN style="font-size: 13.3333330154419px;"&gt;EXPOSURE&lt;/SPAN&gt; 1 -1 ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output Estimates=RR&amp;amp;infile._adj;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title1 "Proc GENMOD for Adjusted &amp;amp;infile &amp;amp;time";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Variable LOG not found.&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, A, AGGREGATE, ALPH, ALPHA, CICONV, CL, CLCONV, CODING, CONVERGE, CONVH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CORRB, COVB, D, DIAGNOSTICS, DIST, DSCALE, ERR, ERROR, EXPECTED, ID, INFLUENCE, INITIAL, INTERCEPT, ITPRINT, LINK, LOGNB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LRCI, LRCL, MAXIT, MAXITER, NOINT, NOLOGNB, NOPRINTCL, NOSCALE, OBSTAT, OBSTATS, OFFSET, P, PRED, PREDICTED, PSCALE, R,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDUAL, RORDER, SCALE, SCORING, SINGULAR, TYPE1, TYPE3, TYPE3WALD, WALD, WALDCI, WALDCL, XVARS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 16:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204029#M10957</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-04-25T16:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204030#M10958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should make the offset variable in a datastep before. As I showed with the "myoffset" above..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 16:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204030#M10958</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-04-25T16:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204031#M10959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jacob I created an offset variable and then included it in my procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=IRsforCohort;&lt;/P&gt;&lt;P&gt;class Exposure &amp;amp;covariates ;&lt;/P&gt;&lt;P&gt;model outcome=Exposure &amp;amp;covariates Age_At_Index IndexYear /&amp;nbsp; dist = poisson&amp;nbsp; offset=myoffset link=log&amp;nbsp; type3; &lt;/P&gt;&lt;P&gt; Estimate ' 1 Vs 0' Exposure 1 -1 ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output Estimates=RR&amp;amp;infile._adj;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title1 "Proc GENMOD for Adjusted &amp;amp;infile &amp;amp;time";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the IR variable I had created in a previous data step and now use the Outcome variable instead so have outcome=Exposure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following results. In your opinion you think I should use the Mean rather than the LBeta variables to show relative risk for &lt;/P&gt;&lt;P&gt;Treatment Difference in Headache rate during 90 days follow-up period for &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;treated and untreated group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Contrast Estimate Results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mean&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mean&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L'Beta&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L'Beta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chi-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Estimate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Confidence Limits&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Estimate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alpha&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Confidence Limits&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Square&amp;nbsp;&amp;nbsp;&amp;nbsp; Pr &amp;gt; ChiSq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 Vs 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; 0.9714&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5534&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.7049&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0291&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.2870&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.05&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.5916&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5335&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;0.9194&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 05:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204031#M10959</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-04-26T05:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204032#M10960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, all others than statisticians are not interested in an estimate of Log(rate-ratio). They want the estimate of the rate-ratio, which is your mean-estimate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 07:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204032#M10960</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-04-26T07:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204033#M10961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not included a scale option. I just want your advice if this is correct. I have been reading about PSCALE and DSCALE this morning before bothering you again and tried to understand if I needed this option , but am still unclear. Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 09:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204033#M10961</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-04-26T09:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204034#M10962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, you don't need the scale option. Rather, you should consider Cox-regression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 09:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204034#M10962</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-04-26T09:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD  Class question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204035#M10963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again for all your help.&amp;nbsp; I am doing both Cox and Poisson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 11:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GENMOD-Class-question/m-p/204035#M10963</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-04-26T11:44:31Z</dc:date>
    </item>
  </channel>
</rss>

