Skip to content

contradicting measures based on Log likelihood and AIC in spatial models

4 messages · elaine kuo, Roger Bivand

#
On Sun, 19 Dec 2010, elaine kuo wrote:

            
Was this using lm.morantest() - it should have been?
Neither of the fits are credible, as the line search has terminated in 
both cases at its upper limit. These is something seriously wrong with 
your analysis. Which method= argument were you using, presumably in 
spautolm? You did not quote the exact way in which you called the 
functions used - this will be where your problems lie.

Are you using a weights matrix with very small values (and very small row 
sums), and a sparse matrix method? Do you get different outcomes if you 
set the search interval yourself - or accept the default and 
row-standardise the weights (style="W" in nb2listw)? Look at 
summary(sapply(listw$weights, sum)) where listw is your listw object. I'll 
add a warning to spautolm() to test whether the result is equal to a line 
search bound.

In reply to your question, had your analysis not been flawed, you could 
not judge between CAR and SAR in the way you suggest as the models are not 
strictly nested. Please see Ripley (1981) Spatial Statistics, Wiley, p. 
90, for a discussion of the relationship between SAR and CAR 
representations. Briefly, if we term the CAR weights matrix C and the SAR 
weights matrix S, then C = S + S' - S'S, and if LL' is the Cholesky 
decomposition of (I - C), S = I - L'. If you do the full analysis of this 
relationship, you may be able to proceed, but you also need to consider 
the interpretation of any results.

Hope this helps,

Roger

  
    
#
On Mon, 20 Dec 2010, elaine kuo wrote:

            
Elaine,

There are a number of issues with your code; you have been ignoring a 
warning after running the CAR model too - the function should have 
reported:

Non-symmetric spatial weights in CAR model

which are not permitted, but may be valid if case weights are used too. 
You are also using na.omit, which suggests that your data is not complete 
- this may introduce additional problems.

I'm concerned that your distance based weights may also be incorrectly 
specified, as you are using distances on the plane, but I suspect that you 
should be using Great Circle distances.

Since this is a use case in which the spatial coefficients are hitting 
their upper bounds, I would be interested in seeing your data and script, 
if you can make then available, just in case there is something that ought 
to be fixed in the function. Could you please either attach 
Mig_ratio_20101214.csv to an offlist email reply, or if it is large, put 
it on a website and send the URL?

Best wishes,

Roger