powered by
trW(W, m = 100, p = 50, type = "mult")
m
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