listw2dgCMatrix: Interface between Matrix class objects and weights list

Description Usage Arguments Value Author(s) Examples

View source: R/listw2dgCMatrix.R

Description

Interface between Matrix class objects and weights list

Usage

1
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 [email protected]

Examples

1
2
3
4
library(spdep)
data(columbus)
listw<-nb2listw(col.gal.nb)
spW<-listw2dgCMatrix(listw)

sphet documentation built on Jan. 6, 2019, 3:01 a.m.