Last data update: 2014.03.03
|
R: Interface between Matrix class objects and weights list
listw2dgCMatrix | R Documentation |
Interface between Matrix class objects and weights list
Description
Interface between Matrix class objects and weights list
Usage
listw2dgCMatrix(listw, zero.policy = NULL)
Arguments
listw |
a listw object created for example by nb2listw
|
zero.policy |
See lagsarlm for details
|
Value
Matrix class object: a sparse Matrix
Author(s)
Gianfranco Piras
Examples
data(columbus, package="spdep")
listw<-nb2listw(col.gal.nb)
spW<-listw2dgCMatrix(listw)
Results
|