trW(W, m = 100, p = 50, type = "mult")
m
traces.as_dgRMatrix_listw
, nb2listw
example(columbus)
listw <- nb2listw(col.gal.nb)
W <- as(as_dgRMatrix_listw(listw), "CsparseMatrix")
trMat <- trW(W, type="mult")
str(trMat)
trMC <- trW(W, type="MC")
str(trMC)
plot(trMat, trMC)
Run the code above in your browser using DataLab