<?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: How to adjust for spatial autocorrelation in the logistic model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-for-spatial-autocorrelation-in-the-logistic-model/m-p/19187#M552</link>
    <description>I think you will need a subject= specification in the random statement.  Try:&lt;BR /&gt;
&lt;BR /&gt;
PROC GLIMMIX data=test;&lt;BR /&gt;
CLASS subjid;&lt;BR /&gt;
MODEL disease= grass200m&lt;BR /&gt;
/ dist=binary solution oddsratio;&lt;BR /&gt;
random _residual_ / type=sp(exp) (x_cor y_cor) subject=subjid;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Each subject should have its own set of x and y coordinates.&lt;BR /&gt;
&lt;BR /&gt;
SteveDenham</description>
    <pubDate>Thu, 23 Jun 2011 11:15:06 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2011-06-23T11:15:06Z</dc:date>
    <item>
      <title>How to adjust for spatial autocorrelation in the logistic model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-for-spatial-autocorrelation-in-the-logistic-model/m-p/19186#M551</link>
      <description>Hi! &lt;BR /&gt;
I conducted a case control study about the disease incidence and land cover types. The contro points were random sampled based on the population density.&lt;BR /&gt;
How to adjust for the spatial autocorrelation in thr logistic model?&lt;BR /&gt;
I have tried to do it by using GLIMMIX &lt;BR /&gt;
&lt;BR /&gt;
PROC GLIMMIX data=test;&lt;BR /&gt;
     MODEL  disease= grass200m&lt;BR /&gt;
                      / dist=binary solution oddsratio;&lt;BR /&gt;
     random _residual_ / type=sp(exp) (x_cor y_cor);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
It does not work. There is a warning message: "Obtaining minimum variance quadratic unbiased estimates as starting values for the covariance parameters failed."&lt;BR /&gt;
&lt;BR /&gt;
How do I modify my code? Thanks a lot!</description>
      <pubDate>Wed, 22 Jun 2011 21:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-for-spatial-autocorrelation-in-the-logistic-model/m-p/19186#M551</guid>
      <dc:creator>buski</dc:creator>
      <dc:date>2011-06-22T21:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust for spatial autocorrelation in the logistic model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-for-spatial-autocorrelation-in-the-logistic-model/m-p/19187#M552</link>
      <description>I think you will need a subject= specification in the random statement.  Try:&lt;BR /&gt;
&lt;BR /&gt;
PROC GLIMMIX data=test;&lt;BR /&gt;
CLASS subjid;&lt;BR /&gt;
MODEL disease= grass200m&lt;BR /&gt;
/ dist=binary solution oddsratio;&lt;BR /&gt;
random _residual_ / type=sp(exp) (x_cor y_cor) subject=subjid;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Each subject should have its own set of x and y coordinates.&lt;BR /&gt;
&lt;BR /&gt;
SteveDenham</description>
      <pubDate>Thu, 23 Jun 2011 11:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-for-spatial-autocorrelation-in-the-logistic-model/m-p/19187#M552</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2011-06-23T11:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust for spatial autocorrelation in the logistic model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-for-spatial-autocorrelation-in-the-logistic-model/m-p/19188#M553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, a subject specification is required.&amp;nbsp; If there are no subject blocks and all data should be regarded as a single subject, then specify subject=intercept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 00:42:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-for-spatial-autocorrelation-in-the-logistic-model/m-p/19188#M553</guid>
      <dc:creator>Dale</dc:creator>
      <dc:date>2011-06-24T00:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust for spatial autocorrelation in the logistic model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-for-spatial-autocorrelation-in-the-logistic-model/m-p/19189#M554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion! &lt;/P&gt;&lt;P&gt;When I try the code below, it works. &lt;/P&gt;&lt;P&gt;However, the standard error of SP(SPH) was showed "." in the covariance parameter estimates.&lt;/P&gt;&lt;P&gt;The odds ratios do not change no matter I change the type of covariance to vc or cs. Is it correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ID is the unique ID for case and control and the "x_cor" and "y_cor" are the coordinate information.&lt;/P&gt;&lt;P&gt;The geographic distribution of case and control points are very similar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PROC GLIMMIX data=BROWN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS ID;&lt;/P&gt;&lt;P&gt;MODEL DISEASE= ode200m grass200m&lt;/P&gt;&lt;P&gt;EM1/ dist=binary solution oddsratio;&lt;/P&gt;&lt;P&gt;random _residual_ /subject=ID &lt;/P&gt;&lt;P&gt;type=sp(sph) (x_cor y_cor);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output out=abd pred=p resid=r;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt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gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 21:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-for-spatial-autocorrelation-in-the-logistic-model/m-p/19189#M554</guid>
      <dc:creator>buski</dc:creator>
      <dc:date>2011-06-24T21:18:57Z</dc:date>
    </item>
  </channel>
</rss>

