<?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 Count Data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Count-Data/m-p/452524#M23625</link>
    <description>&lt;P&gt;I am going to use Negative Binomial Regression to run some data.My dependent variable is count variable and independent variables are also count variable. Two moderators are continuous variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched the following code. My question&amp;nbsp;are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) if my independent variables are not categorical variable (device is a categorical variable in that example), what command do I need to use? Still use "class" (underlined) before the independent variables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I will have two moderators, how can I add them in the code? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data=have;&lt;BR /&gt;&lt;U&gt;&lt;FONT color="#000000"&gt;class &lt;/FONT&gt;&lt;/U&gt;device;&lt;BR /&gt;model count=device/ offset=logt dist=NB&lt;BR /&gt;link=log;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2018 15:27:28 GMT</pubDate>
    <dc:creator>dapenDaniel</dc:creator>
    <dc:date>2018-04-09T15:27:28Z</dc:date>
    <item>
      <title>Count Data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Count-Data/m-p/452524#M23625</link>
      <description>&lt;P&gt;I am going to use Negative Binomial Regression to run some data.My dependent variable is count variable and independent variables are also count variable. Two moderators are continuous variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched the following code. My question&amp;nbsp;are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) if my independent variables are not categorical variable (device is a categorical variable in that example), what command do I need to use? Still use "class" (underlined) before the independent variables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I will have two moderators, how can I add them in the code? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data=have;&lt;BR /&gt;&lt;U&gt;&lt;FONT color="#000000"&gt;class &lt;/FONT&gt;&lt;/U&gt;device;&lt;BR /&gt;model count=device/ offset=logt dist=NB&lt;BR /&gt;link=log;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:27:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Count-Data/m-p/452524#M23625</guid>
      <dc:creator>dapenDaniel</dc:creator>
      <dc:date>2018-04-09T15:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count Data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Count-Data/m-p/452567#M23627</link>
      <description>&lt;P&gt;If you don't want to treat your Device predictor as categorical (represented by a set of design variables, resulting in an effect with multiple degrees of freedom), then you can drop the CLASS statement. If it is only in the MODEL statement, then it will by treated as continuous (with 1 degree of freedom). You would probably want your moderator variables added to the MODEL statement as both main effects and interactions with your Device predictor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;model count = device a b device*a device*b&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 17:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Count-Data/m-p/452567#M23627</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-04-09T17:19:06Z</dc:date>
    </item>
  </channel>
</rss>

