Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

listw2dgCMatrix

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)

splm

Econometric Models for Spatial Panel Data

v1.4-11
GPL-2
Authors
Giovanni Millo [aut, cre], Gianfranco Piras [aut]
Initial release
2018-07-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.