Skip to content

Spatially Weighted T-Test?

2 messages · Ezra Boyd, Roger Bivand

#
On Sat, 21 Nov 2009, Ezra Boyd wrote:

            
In theory yes, but there are no implementations, because they are not 
really needed. Fit a linear model using the levee factor as the 
independent variable, and test the output object with lm.morantest() in 
the spdep package. If need be, you may also fit a spatial regression 
model. Note that your levee/no_levee variable is itself highly patterned.

It may be sensible to think through how your collection of dependent 
variables are related to each other, as the presence or absence of a levee 
is unlikely to be the only relevant explanatory variable, and missing 
variables will probably increase spatial patterning in the residuals. You 
may even need to restrict your comparison to otherwise similar counties 
near major water bodies of similar topography with and without levees to 
see anything worthwhile.
I don't know how you draw this conclusion, the two are unrelated. The 
presence of spatial autocorrelation will have the effect of reducing your 
effective degrees of freedom. Dalgaard's assertion is based on independent 
observations, which you have already stated that you do not have, hence 
the drop in effective n proportional to the strength of positive 
dependence.

Hope this helps,

Roger