<?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: Sample size calculation and count data/Poisson regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113234#M5963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, PROC POWER does not have a direct way of dealing with Poisson (others can correct me if I am wrong). However, one can use the approach advocated by Walt Stroup in the 2011 SAS Global Forum:&lt;/P&gt;&lt;P&gt; &lt;A href="http://support.sas.com/resources/papers/proceedings11/349-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/349-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/349-2011.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;He was emphasizing GLMMs, but you don't have any random terms. The approach determines the power for different means and sample sizes. You have to try different sample sizes (variable: reps) until you obtain the desired power. I modified for Poisson. For reps=15 and your means (7 and 5.6 [a 20% drop]), power is only 0.33. Try reps=50 and you will see that power is about 0.8. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title 'Power analysis for Poisson, 2 treatments';&lt;/P&gt;&lt;P&gt;title2 '(based on Stroup, 2011, 2012)';&lt;/P&gt;&lt;P&gt;data power_poisson;&lt;/P&gt;&lt;P&gt;input trt $ mean;&lt;/P&gt;&lt;P&gt;reps=15;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;lt;--change to any number you want to test;&lt;/P&gt;&lt;P&gt;do obs=1 to reps;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;control 7&lt;/P&gt;&lt;P&gt;exper 5.6&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=power_poisson;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=power_poisson;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;lt;--mostly ignore the output here, ODS tables are stored for manipulation below;&lt;/P&gt;&lt;P&gt; class trt;&lt;/P&gt;&lt;P&gt; model mean = trt / chisq link=log dist=poisson;&lt;/P&gt;&lt;P&gt; contrast 'control vs experimental' trt 1 -1 / chisq ;&lt;/P&gt;&lt;P&gt; ods output tests3=F_overall contrasts=F_contrasts;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data power;&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;lt;--this data step takes relevant parts of above output to get power at given N and treatment means;&lt;/P&gt;&lt;P&gt; set F_overall F_contrasts;&lt;/P&gt;&lt;P&gt;&amp;nbsp; nc_parm=numdf*Fvalue;&lt;/P&gt;&lt;P&gt;&amp;nbsp; alpha=0.05;&lt;/P&gt;&lt;P&gt;&amp;nbsp; F_Crit=Cinv(1-alpha,numdf,0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Power=1-probchi(F_crit,numdf,nc_parm);&lt;/P&gt;&lt;P&gt;proc print data=power;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;lt;--this printout is the relevant part, look at far right for realized power;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach is described in SAS for Mixed Models, 2nd Edition (2006) and in Stroup book (2012, chapter 16). I changes for Poisson. You can expand for any number of treatments, treatment means, and use different distributions. With random effects, you would need to to hold those variances constant. See the listed paper and these references for more details. If you use this approach, you should definitely cite Stroup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 14:34:05 GMT</pubDate>
    <dc:creator>lvm</dc:creator>
    <dc:date>2013-04-24T14:34:05Z</dc:date>
    <item>
      <title>Sample size calculation and count data/Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113230#M5959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to perform a sample size calculation with count data (cumulative number of a particular event) as primary endpoint. Do you have any idea how to proceed in SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you in advance for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 08:36:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113230#M5959</guid>
      <dc:creator>AnalytX</dc:creator>
      <dc:date>2013-04-19T08:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size calculation and count data/Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113231#M5960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you seen this thread? &lt;A _jive_internal="true" href="https://communities.sas.com/message/134629#134629"&gt;https://communities.sas.com/message/134629#134629&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 19:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113231#M5960</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-04-19T19:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size calculation and count data/Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113232#M5961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would help to know more details. Are you trying to estimate one or more means with a fixed level of precision or are are trying to achieve a certain power for a contrast (such as the difference of two means)? Or something else? Do you have any random effects? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 20:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113232#M5961</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2013-04-19T20:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size calculation and count data/Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113233#M5962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rick and LVM for your answers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be more precise:&lt;/P&gt;&lt;P&gt;We would like to determine the sample size for a study according to the primary study outcome which is a count variable. According to litterature, we know that the average number is 7 events in the population. We estimate a decrease of 20% in the treated group at the end of the study. With an expected rate of 7 events using a two-sided &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Poisson regression &lt;/SPAN&gt;at the 5% alpha-level, what is the number of subjects needed to detect a 20% decrease &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;with at least &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;80% power?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you in advance for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 07:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113233#M5962</guid>
      <dc:creator>AnalytX</dc:creator>
      <dc:date>2013-04-24T07:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size calculation and count data/Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113234#M5963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, PROC POWER does not have a direct way of dealing with Poisson (others can correct me if I am wrong). However, one can use the approach advocated by Walt Stroup in the 2011 SAS Global Forum:&lt;/P&gt;&lt;P&gt; &lt;A href="http://support.sas.com/resources/papers/proceedings11/349-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/349-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/349-2011.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;He was emphasizing GLMMs, but you don't have any random terms. The approach determines the power for different means and sample sizes. You have to try different sample sizes (variable: reps) until you obtain the desired power. I modified for Poisson. For reps=15 and your means (7 and 5.6 [a 20% drop]), power is only 0.33. Try reps=50 and you will see that power is about 0.8. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title 'Power analysis for Poisson, 2 treatments';&lt;/P&gt;&lt;P&gt;title2 '(based on Stroup, 2011, 2012)';&lt;/P&gt;&lt;P&gt;data power_poisson;&lt;/P&gt;&lt;P&gt;input trt $ mean;&lt;/P&gt;&lt;P&gt;reps=15;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;lt;--change to any number you want to test;&lt;/P&gt;&lt;P&gt;do obs=1 to reps;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;control 7&lt;/P&gt;&lt;P&gt;exper 5.6&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=power_poisson;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=power_poisson;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;lt;--mostly ignore the output here, ODS tables are stored for manipulation below;&lt;/P&gt;&lt;P&gt; class trt;&lt;/P&gt;&lt;P&gt; model mean = trt / chisq link=log dist=poisson;&lt;/P&gt;&lt;P&gt; contrast 'control vs experimental' trt 1 -1 / chisq ;&lt;/P&gt;&lt;P&gt; ods output tests3=F_overall contrasts=F_contrasts;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data power;&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;lt;--this data step takes relevant parts of above output to get power at given N and treatment means;&lt;/P&gt;&lt;P&gt; set F_overall F_contrasts;&lt;/P&gt;&lt;P&gt;&amp;nbsp; nc_parm=numdf*Fvalue;&lt;/P&gt;&lt;P&gt;&amp;nbsp; alpha=0.05;&lt;/P&gt;&lt;P&gt;&amp;nbsp; F_Crit=Cinv(1-alpha,numdf,0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Power=1-probchi(F_crit,numdf,nc_parm);&lt;/P&gt;&lt;P&gt;proc print data=power;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;lt;--this printout is the relevant part, look at far right for realized power;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach is described in SAS for Mixed Models, 2nd Edition (2006) and in Stroup book (2012, chapter 16). I changes for Poisson. You can expand for any number of treatments, treatment means, and use different distributions. With random effects, you would need to to hold those variances constant. See the listed paper and these references for more details. If you use this approach, you should definitely cite Stroup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 14:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113234#M5963</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2013-04-24T14:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size calculation and count data/Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113235#M5964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As usual, lvm provides excellent code and citations. I'll only add a shameful self-serving advertisement:&lt;/P&gt;&lt;P&gt;In my book, &lt;EM&gt;&lt;A href="http://support.sas.com/publishing/authors/wicklin.html"&gt;Simulating Data with SAS&lt;/A&gt;&lt;/EM&gt;, I provide several examples of using simulation to compute power and sample size (Ch 5 [p. 84-88], Ch 6 [p. 94-95], Ch 11 [p. 211-215]). My book is more elementary than Stroup's book and does not focus solely on regression models. However, if you ever need to simulate multiple correlated covariates for a more sophisticated model, my book might be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 15:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/113235#M5964</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-04-24T15:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size calculation and count data/Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/254345#M13422</link>
      <description>&lt;P&gt;Thank you very much! &amp;nbsp;I'm using this now.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-and-count-data-Poisson-regression/m-p/254345#M13422</guid>
      <dc:creator>BarryDeCicco</dc:creator>
      <dc:date>2016-03-03T21:45:38Z</dc:date>
    </item>
  </channel>
</rss>

