[R-sig-Geo] R encounters fatal error in errorsarlm - sdpep package

Philine Gaffron p.gaffron at tuhh.de
Wed Sep 25 03:12:56 CEST 2013


I am trying to run a spatial regression analysis using the errorsarlm  
function in the sdpep package. I first ran into memory problems (on a  
larger dataset than the one described below) but have adjusted the  
memory size limit:

> memory.limit(size = 800000)
[1] 8e+05
However, when I try to execute the following code in R Studio, I  
receive the message "R Session aborted - R encountered a fatal error -  
The session was terminated"

> ElDU.slm.PM25.white <- errorsarlm(PM_PM25 ~ race_white, data =  
> ElDorado_urban, listw=ElDoU_listw)

The data was imported from an ArcGIS shape file:
> Parcels2008_inc_POP <- readOGR(".", "Parcels_2008_inc_pop")
> ElDorado_urban <- subset(Parcels2008_inc_POP, COUNTYFP10 == "017")

The subset contains data from 2081 polygons

The listw object was created as follows:

> Eld_U_coords <- coordinates(ElDorado_urban)
> Eld_U_IDs <- row.names(ElDorado_urban)
> ElDoU_nb <- dnearneigh(Eld_U_coords, d1 = 0, d2 = 492, row.names = Eld_U_IDs)
> ElDoU_listw <- nb2listw(ElDoU_nb, glist=NULL, style="S", zero.policy=NULL)

Is there anything inherent in my approach that could cause this  
problem or would one need to look at the data? I include the session  
info below.

Thanks for any help,


> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)

[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United  
States.1252    LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] spdep_0.5-65    Matrix_1.0-12   lattice_0.20-15 rgdal_0.8-11    sp_1.0-13

loaded via a namespace (and not attached):
[1] boot_1.3-9      coda_0.16-1     deldir_0.0-22   grid_3.0.1       
LearnBayes_2.12 MASS_7.3-26     nlme_3.1-109    splines_3.0.1    

> library(help=spdep)
Information on package ?spdep?


Package:            spdep
Version:            0.5-65
Date:               2013-09-04

Philine Gaffron PhD MLA BSc
Fellow of the German Research Foundation (DFG)
Project 'Urban Transport and Environmental Justice'
Visiting Researcher
Institute of Transportation Studies
University of California Davis

p.gaffron at tuhh.de
pgaffron at ucdavis.edu

p.gaffron at tu-harburg.de

More information about the R-sig-Geo mailing list