<?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 poisson using bonferroni corrections on 95% confidence interval in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527789#M26709</link>
    <description>&lt;P&gt;Each BY group analysis is independent, so the cancer type is not part of the analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So are you asking how to estimate differences between levels of the AGECAT variable? That's the only categorical variable in your model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_introcom_sect039.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;use the LSMEANS statement&lt;/A&gt;&amp;nbsp;to compare the levels of AGECAT. You can use the ILINK option to get the estimates&amp;nbsp;on the data scale and CL to&amp;nbsp;request confidence intervals. You can use the ADJUST= option to adjust for multiple comparisons by using Bonferroni or other methods. Here's &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_logistic_examples21.htm&amp;amp;locale=en" target="_self"&gt;an example for a logistic model&lt;/A&gt;, but the syntax for the Poisson model will be similar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2019 18:34:45 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-01-16T18:34:45Z</dc:date>
    <item>
      <title>proc genmod poisson using bonferroni corrections on 95% confidence interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527706#M26706</link>
      <description>&lt;P&gt;Hi SAS enthusiasts, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm running poisson regression analysis for 40 different cancer types where association of each cancer type was tested against the 6 distinct predictors such as:&amp;nbsp;PTRAF, PNPL, PRMP, PTSDF, NPL_CNT and TSDF_CNT.&amp;nbsp; At the end of the macro, I have 40*6=240 separate SAS annotated outputs. I'd like to do bonferroni correction to the 95% CI.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how to reflect bonferron correction in the code?&amp;nbsp; Shall I manually manipulate Lower and Upper Wald statistics?&lt;/P&gt;
&lt;P&gt;Any hints, insights, brainstorming or direct help will be apprceiated!&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp; for your time indeed!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%SYMDEL; 
%macro models (parest,ejvar,parej);
ODS OUTPUT   ParameterEstimates=&amp;amp;parest;
PROC GENMOD DATA=MYDATA;
BY CANCER_TYPE NOTSORTED;
CLASS AGECAT(REF='10')/PARAM=REF;
MODEL N_BLOCK = &amp;amp;ejvar AGECAT/ TYPE3 DIST=POISSON LINK=LOG OFFSET=LN;
RUN;

ODS RTF CLOSE;
DATA &amp;amp;parej; SET &amp;amp;parest;
RR= EXP(ESTIMATE);
LOW_RR=EXP(LowerWaldCL);
UP_RR=EXP(UpperWaldCL); 
RUN;

%mend models;
%MODELS(PAREST_PTRAF , X_PTRAF , PAREJ_PTRAF );
%MODELS(PAREST_PNPL  , X_PNPL  , PAREJ_PNPL  );
%MODELS(PAREST_PRMP  , X_PRMP  , PAREJ_PRMP  );
%MODELS(PAREST_PTSDF , X_PTSDF , PAREJ_PTSDF );
%MODELS(PAREST_NPL   , X_NPL_CNT , PAREJ_NPL);
%MODELS(PAREST_TSDF  , X_TSDF_CNT, PAREJ_TSDF);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 14:01:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527706#M26706</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-01-16T14:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod poisson using bonferroni corrections on 95% confidence interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527712#M26707</link>
      <description>&lt;P&gt;Maybe I am misunderstanding, but if you want to compare the&amp;nbsp;effects of the cancer types, wouldn't you want to put&lt;/P&gt;
&lt;P&gt;CANCER_TYPE on the CLASS statement and include it in the model? That enables you to compare the different types, estimate difference, adjust for multiplicity, and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a reminder, here is &lt;A href="https://blogs.sas.com/content/iml/2018/02/14/difference-class-and-by-statements-sas.html" target="_self"&gt;a discussion of the difference between the BY statement and the CLASS statement for statistical analyses.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 14:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527712#M26707</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-01-16T14:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod poisson using bonferroni corrections on 95% confidence interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527774#M26708</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;, yes, this is the web resource that I consulted with before I develop my models. Thanks for making this resource available which helped me tremendously like any other publications of yours.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, my cancer types are independent from each other and I'm not comparing them each other. Each cancer types are subset data-sets on the given cancer and I'm using BY statement with notsorted statement to run multiple tests.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With that said, do you have nay suggestions how to do Bonferroni corrections on my 95% CI intervals?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 17:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527774#M26708</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-01-16T17:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod poisson using bonferroni corrections on 95% confidence interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527789#M26709</link>
      <description>&lt;P&gt;Each BY group analysis is independent, so the cancer type is not part of the analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So are you asking how to estimate differences between levels of the AGECAT variable? That's the only categorical variable in your model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_introcom_sect039.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;use the LSMEANS statement&lt;/A&gt;&amp;nbsp;to compare the levels of AGECAT. You can use the ILINK option to get the estimates&amp;nbsp;on the data scale and CL to&amp;nbsp;request confidence intervals. You can use the ADJUST= option to adjust for multiple comparisons by using Bonferroni or other methods. Here's &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_logistic_examples21.htm&amp;amp;locale=en" target="_self"&gt;an example for a logistic model&lt;/A&gt;, but the syntax for the Poisson model will be similar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 18:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527789#M26709</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-01-16T18:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod poisson using bonferroni corrections on 95% confidence interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527795#M26710</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Thanks Rick. That makes sense.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm conducting multiple analyses for the number of cancer types as they're separate datasets. Don't I have to correct on the level of p-value since that I'm conducting that many number of tests for each cancer types? I guess, I have to understand what Bonferroni correction is.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 18:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527795#M26710</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-01-16T18:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod poisson using bonferroni corrections on 95% confidence interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527804#M26711</link>
      <description>&lt;P&gt;Yes, I think that is a good idea. You&amp;nbsp;might want to discuss this with a colleague/mentor/advisor. Either CANCER_TYPE is part of the model or it isn't. If it is part of the model, then it belongs on the CLASS statement and you can test for differences between cancer types.&amp;nbsp;If it isn't part of the model, you can't test for differences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use a Bonferroni adjustment: you use alpha/k as the significance level, where k is the number of hypotheses that you are testing. So if you&amp;nbsp;are testing 10 hypotheses, you would only count a test as "significant" when the p-value is less than 0.005.&amp;nbsp; You can adjust CIs the same way: the&amp;nbsp;significance level used to form the standard errors is adjusted. For example, if you are using a t statistic, you would compute a CI by using&amp;nbsp;&lt;SPAN&gt;t_crit = quantile("T", 0.005, df) instead of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;t_crit = quantile("T", 0.05, df)&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 19:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527804#M26711</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-01-16T19:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod poisson using bonferroni corrections on 95% confidence interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527805#M26712</link>
      <description>Got it. All agree. Thank you!</description>
      <pubDate>Wed, 16 Jan 2019 19:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-poisson-using-bonferroni-corrections-on-95/m-p/527805#M26712</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-01-16T19:12:15Z</dc:date>
    </item>
  </channel>
</rss>

