Displaying 3 results from an estimated 3 matches for "gwt2nb".
2011 May 04
1
Instrumental variable quantile estimation of spatial autoregressive models
...could give me a hint on the different codes and steps?
Please find attached a small sample of my data and matrix.
R codes:
library(foreign)
library(lmtest)
library(spdep)
library(quantreg)
data<-read.table("DataSample.txt",header=TRUE, sep="")
attach(data)
matrix<-read.gwt2nb("matrixsample.gwt" ,region.id=no_Trans)
matrix.listw<-nb2listw(matrix)
OLS model
OLS<-lm(lnprice~surface+d2007+LUX+tsect_ci, data=data)
summary(OLS)
SAR model
SAR<-lagsarlm(lnprice~surface+d2007+LUX+tsect_ci, data=data, listw = matrix.listw)
summary(SAR)
I hope that this infor...
2003 Aug 21
4
Importing data into R
Hello.  I have been working with GeoDA, and have created a spatial weights
file for my data.  I am now looking to use R to run regressions on this
data.  However, I don't know and can't figure out how to get my data into R
to run these regressions.
I have the data in many formats, from a .dbf file to an Excel spreadsheet,
but I'm not sure how to go about importing it into R.  Could
2006 Mar 24
1
who can tell me the reason why it is different on calculating Moran's I using ARCGIS, Geoda and R?
...sured by GPS;
 LIVES: attribute data
I get the different result of Moran's between ARCGIS and Geoda, R, why?
ARCGIS:spatial statistics tools:spatial autocorrelation(Moran's I)=0.0343
GeoDa:Moran's I=0.1539
R:Moran I statistic =0.153905049
The key arguments in R that i use:
ccc<-read.gwt2nb("ccc.GWT",region.id=ID)
ccc2<-nb2listw(ccc, glist=NULL, style="W", zero.policy=TRUE)
moran.test(LIVES,ccc2,alternative="two.sided")
what is the problem? I'm very confused by it?
Thanks very very much!
--
Kind Regards,Zhi Jie,Zhang ,Department of EpidemiologyS...