search for: spdep

Displaying 20 results from an estimated 141 matches for "spdep".

2003 Dec 15
2
Error with spdep
Dear useRs: First of all I would like to thank all the responses. I've an error with package "spdep". I am working with a Windows XP machine (AMD-2000-XP RAM-256DDR) and 1.8.0. R-version and when I try to load spdep appear the following error: > library(spdep) Error in loadNamespace(i, c(lib.loc, .libPaths()), keep.source) : There is no package called 'maptools' Error i...
2004 Jan 05
2
Installing spdep
Hello all, I am trying to install the package 'spdep' and get the following error message when I invoke library(spdep) at the R prompt: Error in loadNamespace(i, c(lib.loc, .libPaths()), keep.source) There is no package called 'maptools' Error in library(spdep) : package/namespace load failed I get this if I try to install 'on t...
2007 Oct 15
1
Distance matrix in SpDep-package
Hello everybody, I would like to use the SpDep-package (especially the Local Moran index analysis and the Getis-Ord statistics) in R for analysing my data. However, I don't have x-y coordinates, but my data is in a distance matrix format. Is it possible to use the SpDep package with predefined distances as well instead of letting the progra...
2007 Oct 01
1
Error loading DCluster
When I try to load the DCluster package I get the following error message (R 2.5.1; PowerBook G4; Mac OS X 10.4.10) (Load needed package) Lade nötiges Paket: spdep (error: package spdep could not been loaded) Fehler: Paket 'spdep' konnte nicht geladen werden (additional warning message) Zusätzlich: Warning message: (There is no package spdep in:.....) es gibt kein Paket 'spdep' in: library(pkg, character.only = TRUE, logical = TRUE, lib.loc...
2009 Jun 06
1
large numbers of observations using ME() of spdep
Dear All, We aim to remove the spatial structure of our data using Moran Eigen Vectors and spdep package . Our data has 3694 samples and 13 variables. The computer stop working after almost 4 days of processing (we found it emitting a sharp sound and with all colors on the screen. No wories, it was restared without problem!). And we are left with nothing: no result file was produced since the...
2008 Apr 28
1
R-Forge SVN repositories: R CMD build/check error on Windows machines
...a directory with the same name as the package name. Under Linux 'R CMD build pkg' or 'R CMD check pkg' work pretty well (I think Kurt Hornik fixed that in R 2.5.1 or so) whereas under Windows one gets the following error (this is the example sent by the user): c:\work\packages\spdep>R CMD check pkg * checking for working pdflatex ... OK * using log directory 'C:/work/packages/spdep/pkg.Rcheck' * using R version 2.7.0 (2008-04-22) * using session charset: ISO8859-1 * checking for file 'pkg/DESCRIPTION' ... OK * this is package 'spdep' version '0.4...
2005 Jan 30
1
New user...tips for spdep
[This email is either empty or too large to be displayed at this time]
2008 Mar 31
1
GeoDa spdep
My question is in regard to the spdep and GeoDa packages. Do you know how to extract a neighborhood/adjacency matrix from R? I need a matrix that has all the neighborhoods on the X and Y axis, and then a r=1 when the neighborhoods touch, and a r=0 when neighborhoods don't touch. I think the Moran's I functions use a matrix l...
2003 Nov 27
1
lagsarlm - using mixed explanatory variables (spdep package)
Hello I'm very new to R (which is excellent), so apologies if this has already been raised. In the spdep package, I'm trying to undertake an autoregressive mixed model using the lagsarlm function. This is working fine, but there does not appear to be a method of including an explanatory variable without it automatically being included as a lagged term. I'm after something along the lines of...
2005 Jan 30
1
New user...tips for spdep?
...ist, I'm a very new user to the R system. I'm only beginning to learn the basics, but so far I've been able to do little more than try a few examples, and of course begin reading the documentation. My primary motivation for exploring R is the availability of tools like the 'spdep' package for calculating spatial statistics such as Geary's C and Moran's I, which I would like to use in an analysis for my thesis. However, I am not really sure how to get started. As a simple example, if I have a table with columns containing an ID field, X & Y coordinates...
2011 May 07
1
spdep::poly2nb problem
I downloaded a US states+territories shapefile from http://www.weather.gov/geodata/catalog/national/html/us-state.htm and unzipped it into my working directory. Then in R (version 12.2.0 for ms-win32): library(rgdal) # Version: 0.6-28 library(spdep) # Version: 0.5-24 (loads sp: Version: 0.9-72) # read in the data states<-readOGR(".","s_01de10") summary(states) # now create a neighbors list states_nb<-poly2nb(states) # create a 0/1 matrix of the neighbors nb_mat<-nb2mat(states_nb,style="B",zero.policy=T...
2008 Apr 18
1
spdep question - Moran's I
Dear all, I would like to calculate a Moran's I statistic using the moran function in the spdep package. The problem I'm having deals with how to create the listw object. My data stems from the area of social network analysis. I have list of poeple and for each pair of them I have a measure of their relationship strength. So my dataset looks like: Jim; Bob; 0.5 This measure of relations...
2005 Apr 25
1
multiple autocorrelation coefficients in spdep?
Hello, Has anyone modified the errorsarlm in the R package spdep to allow for more than a single spatial autocorrelation coefficient (i.e. 'lambda')? Or, if not, any initial suggestions on how to make that modification? I have looked at the source code for the function and realize that any attempt to do it on my own would require much dedic...
2005 Aug 03
1
help for cell2nb and queencell in spdep package
...d, say, location[1:5,1:5], and I want to know the indices of 8 neighbours of each cell. For example, for location[2,2], its neighbour coordinates are [1,1:3], [2,1], [2,3] and [3,1:3]. Sometimes I also need to remove edge effects (torus = TRUE). I have tried "cell2nb" function in your spdep package. Here's my example: > neigh <- cell2nb(5,5,type="queen",torus=T) > neigh Neighbour list object: Number of regions: 25 Number of nonzero links: 200 Percentage nonzero weights: 32 Average number of links: 8 > neigh[1] [[1]] [1] 2 5 6 7 10 21 22 25 Is there way...
2004 May 04
1
spdep question
Dear list, (also sent to Roger Bivand, but perhaps somebody of you can help me also) I am trying to use package spdep for fitting an SAR model with errorsarlm. However, I am not sure how to make a valid nb object out of my neighborhood. As far as I have seen, there is no documentation for nb.object. I have done the following: class(pschmid$nb) <- "nb" # pschmid is a prab object as generated from fun...
2008 Oct 08
1
Error in spdep: system is computationally singular
Hi all, I am trying to run an autologistic model using the function errorsarlm from spdep package. **I built an XY matrix extracting the two colums from matriz** coords1<-matriz[matriz$casos1==1, c(4,5)] coords1<-as.matrix(coords1) **I identify neighbours of region points** nb20<-dnearneigh(coords1,0,20,longlat=TRUE) ** I build a neighbours list with spatial weights** nb...
2004 Nov 18
1
Method dispatch S3/S4 through optimize()
I have been running into difficulties with dispatching on an S4 class defined in the SparseM package, when the method calls are inside a function passed as the f= argument to optimize() in functions in the spdep package. The S4 methods are typically defined as: setMethod("det","matrix.csr", function(x, ...) det(chol(x))^2) that is within setMethod() rather than by name before the setMethod(). When called from within functions passed as the f= argument to optimize, the S3 generics fo...
2003 Jul 11
0
spdep
Hi everyone, The Spatial Dependence (spdep) library, has a function called 'dnearneigh', which identifies neighbours of region points by Euclidean distance between lower (greater than) and upper (less than or equal to) bounds. The function returns a list of integer vectors giving the region id numbers for neighbours satisfying the...
2003 Aug 07
0
spdep error message
Hello, I have been using the package "spdep" to run spatial regressions on a data set with about 2500 observations. It has performed well up until now, but the following code resulted in an error: > load("Panel.90s.ok.R") > attach(Panel.90s.ok) > neighs<-dnearneigh(cbind(x,y),0,50000) > help(nbdists) > di...
2009 Aug 17
0
Question spdep package - Moran's I
Dear all, I have a question regarding the spdep package: Assume that each person within my dataset is characterized by a continuous variable y. In order to test for spatial autocorrelation in y I calculated a Moran's I statistic. The problem is that y is also likely to be influenced by a series of other variables x that are unique to each...