<?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: Modelling Repeated Measures with Poisson Distribution in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Repeated-Measures-with-Poisson-Distribution/m-p/570365#M28054</link>
    <description>&lt;P&gt;Right...&amp;nbsp; "/population" on the response side takes care of it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 19:36:52 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2019-07-01T19:36:52Z</dc:date>
    <item>
      <title>Modelling Repeated Measures with Poisson Distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Repeated-Measures-with-Poisson-Distribution/m-p/569963#M28039</link>
      <description>&lt;P&gt;Hello SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to model a count event that occurs in different states over time. I believe the appropriate model is a generalized linear mixed model with Poisson distribution (using proc mixed or glimmix). Below is an arbitrary dataset and the code I wrote. I just need input on the best way to model this information. Thank you!&lt;/P&gt;&lt;P&gt;Data&lt;/P&gt;&lt;P&gt;state year count_event population&lt;BR /&gt;AL 2010 2 20010&lt;BR /&gt;AL 2011 4 20399&lt;BR /&gt;AL 2012 8 20589&lt;BR /&gt;AR 2010 5 40322&lt;BR /&gt;AR 2012 8 43222&lt;BR /&gt;CA 2010 19 64032&lt;BR /&gt;CA 2011 32 68004&lt;BR /&gt;CA 2012 34 69333&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc glimmix data = dsn;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class year state;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model count_event = year state / dist = poisson solution offset = newvar; /*Note: newvar = log(population)*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;random int / subject = state;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 19:38:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Repeated-Measures-with-Poisson-Distribution/m-p/569963#M28039</guid>
      <dc:creator>doctortimi</dc:creator>
      <dc:date>2019-06-28T19:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling Repeated Measures with Poisson Distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Repeated-Measures-with-Poisson-Distribution/m-p/570243#M28050</link>
      <description>&lt;P&gt;Your data appears to be binomial with observed probabilities event_count/population. A random effects model in PROC GLIMMIX is one modeling approach you can use. Another is a GEE model in PROC GEE or PROC GENMOD. Here is an example using an AR correlation structure, but you could select a different one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data = dsn;
class year state;
model count_event/population = year state / dist = binomial;
repeated state / type=ar within=year;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Repeated-Measures-with-Poisson-Distribution/m-p/570243#M28050</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-07-01T13:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling Repeated Measures with Poisson Distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Repeated-Measures-with-Poisson-Distribution/m-p/570361#M28053</link>
      <description>&lt;P&gt;Thank you for your response, StatDave_sas. So with your approach, there is no need for an offset?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Repeated-Measures-with-Poisson-Distribution/m-p/570361#M28053</guid>
      <dc:creator>doctortimi</dc:creator>
      <dc:date>2019-07-01T19:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling Repeated Measures with Poisson Distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Repeated-Measures-with-Poisson-Distribution/m-p/570365#M28054</link>
      <description>&lt;P&gt;Right...&amp;nbsp; "/population" on the response side takes care of it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Repeated-Measures-with-Poisson-Distribution/m-p/570365#M28054</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-07-01T19:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling Repeated Measures with Poisson Distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Repeated-Measures-with-Poisson-Distribution/m-p/570370#M28055</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for the clarification. I just ran this code. Added the "repeated subject = state" portion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc genmod data = dsn1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class dyr state;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model cohort_sample_size/population_size = dyr state / dist = binomial type3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;repeated subject = state /type = ar within = dyr;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 18:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Repeated-Measures-with-Poisson-Distribution/m-p/570370#M28055</guid>
      <dc:creator>doctortimi</dc:creator>
      <dc:date>2019-07-11T18:14:45Z</dc:date>
    </item>
  </channel>
</rss>

