<?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 Multi-level covariates and spatial eff / Panel data models with spatiatial effects are not supported in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Multi-level-covariates-and-spatial-eff-Panel-data-models-with/m-p/640546#M78267</link>
    <description>&lt;P&gt;Hi Folks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm analyzing spatially correlated data and using proc countreg. My health outcome is the number infectious disease counts at each&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;city. The covariates rate_c1, rate_c2 and rate_c3 are at city level (250 cities). And, two other covariates are at province level (17 provinces): rate_p1 and rate_p2. I thought having covariates at different municipal levels cause random error. Therefore, I defined groupid (PID which identifies each province) and errorcomp in the model as shown below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;However, I get an error:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Panel data models with spatial effects are not supported.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I using the correct SAS procedure when covariates are different levels and data has spatial auto-correlation?&lt;/P&gt;
&lt;P&gt;Any pointers regarding the correct procedure to analyze a data with spatial effects with multi-level variables is greatly appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc countreg data=combined Wmat=Wmatrix groupid=PID;
   model n_outcome = rate_c1 rate_c2 rate_c3 rate_p1 rate_p2   
   / errorcomp=random dist=negbin offset=ln;
   spatialeffects rate1 rate3 rate4 rate_p1 rate_p2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Apr 2020 20:30:34 GMT</pubDate>
    <dc:creator>Cruise</dc:creator>
    <dc:date>2020-04-16T20:30:34Z</dc:date>
    <item>
      <title>Multi-level covariates and spatial eff / Panel data models with spatiatial effects are not supported</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Multi-level-covariates-and-spatial-eff-Panel-data-models-with/m-p/640546#M78267</link>
      <description>&lt;P&gt;Hi Folks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm analyzing spatially correlated data and using proc countreg. My health outcome is the number infectious disease counts at each&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;city. The covariates rate_c1, rate_c2 and rate_c3 are at city level (250 cities). And, two other covariates are at province level (17 provinces): rate_p1 and rate_p2. I thought having covariates at different municipal levels cause random error. Therefore, I defined groupid (PID which identifies each province) and errorcomp in the model as shown below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;However, I get an error:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Panel data models with spatial effects are not supported.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I using the correct SAS procedure when covariates are different levels and data has spatial auto-correlation?&lt;/P&gt;
&lt;P&gt;Any pointers regarding the correct procedure to analyze a data with spatial effects with multi-level variables is greatly appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc countreg data=combined Wmat=Wmatrix groupid=PID;
   model n_outcome = rate_c1 rate_c2 rate_c3 rate_p1 rate_p2   
   / errorcomp=random dist=negbin offset=ln;
   spatialeffects rate1 rate3 rate4 rate_p1 rate_p2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2020 20:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Multi-level-covariates-and-spatial-eff-Panel-data-models-with/m-p/640546#M78267</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2020-04-16T20:30:34Z</dc:date>
    </item>
  </channel>
</rss>

