listw2dgCMatrix {splm} | 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 |
zero.policy |
See |
Value
Matrix class object: a sparse Matrix
Author(s)
Gianfranco Piras
Examples
data(columbus, package="spdep")
listw<-spdep::nb2listw(col.gal.nb)
spW<-listw2dgCMatrix(listw)
[Package splm version 1.6-5 Index]