Last chance! 50% off unlimited learning
Sale ends in
asMatrixCsrListw
creates a matrix.csr
from a listw
object, asMatrixCsrIrW
is a helper function used in fitting SAR models and elsewhere to make a (I - rho W) matrix.csr
object from W; asListwMatrixCsr
performs the reverse conversion from matrix.csr
to listw
object.asMatrixCsrListw(listw, zero.policy=FALSE)
asMatrixCsrIrW(W, rho)
asMatrixCsrI(n)
asListwMatrixCsr(mcsr)
listw
object created for example by nb2listw
asMatrixCsrListw()
will terminate with an errormatrix.csr
object created using asMatrixCsrListw
from a listw
objectmatrix.csr
objectasMatrixCsrListw
and asMatrixCsrIrW
return matrix.csr
objects; asListwMatrixCsr
returns a listw
objectas.matrix.csr
require(SparseM)
data(oldcol)
COL.W <- nb2listw(COL.nb, style="W")
COL.W
image(asMatrixCsrListw(COL.W))
Run the code above in your browser using DataLab