Skip to content
Prev 23945 / 29559 Next

SAR Poisson GLM model

On Mon, 1 Feb 2016, Cl?ment Gorin wrote:

            
Look at your model first. A gravity model estimated as Poisson implies the 
278k are interactions, that is origin/destination pairs, not counts of 
origins or destinations. sqrt(278784) is 528, which I think is your real 
n. Your data are zero-inflated, so maybe you need to use a zero-inflated 
approach. Just saying you want to run a SAR Poisson (where your use of SAR 
is ambiguous - you mean y ~ rho W y + X beta, but SAR really means 
simultaneous autoregressive, a distinction from conditional autoregressive 
(CAR)), suggests autocorrelation in the interactions, but the spatial 
autocorrelation is likely in the origin and destination fixed effects, not 
in the interactions.

Did you look at the spatial regression section of the Spatial task view?

There is a SAR Poisson approach (in your terms) in INLA - the slm latent 
model does something like this, but will not handle the zero-inflation, 
and most likely isn't appropriate to your setting. In any case, a Poisson 
approach without an offset (log expected interactions) may not be 
sensible, in addition to the spatial autocorrelation actually "belonging 
to" the origins and destinations, not the interactions.
Never run sensitive processes under RStudio. They have not yet (tens of 
months' waiting) replied to a query of this kind, and the problem in some 
cases may be with them. In a former case under Windows, a similar message 
was seen under RStudio, but the underlying command (not yours) ran to 
completion in RGui. Always report the output of sessionInfo() - your 
platform is unknown.

Why would you think that a dense 278k x 278k matrix could be handled? 
SF/ME work by selecting eigenvectors from the weights (knn is pretty 
unsatisfactory too - it does not yield a planar graph). Your initial 
memory needs are roughly 600GB, so this is probably not the way to go.

If the earlier comments are correct, you actually have n=528, meaning that 
you'd need first to align the SF processes with the origin and destination 
fixed effects (or adding WX to the X) - see work by Griffith and Chun - 
Yongwan Chun may even have code for DOI: 10.1080/00045608.2011.561070 and 
other publications. IIRC you roll out the eigenvectors to the nxn 
interactions like other fixed effects.

Hope this clarifies,

Roger