similar.listw {spdep} | R Documentation

## Create symmetric similar weights lists

### Description

From Ord's 1975 paper, it is known that the Jacobian for SAR models may be found by "symmetrizing" by similarity (the eigenvalues of similar matrices are identical, so the Jacobian is too). This applies only to styles "W" and "S" with underlying symmetric binary neighbour relations or symmetric general neighbour relations (so no k-nearest neighbour relations). The function is invoked automatically within the SAR fitting functions, to call `eigen` on a symmetric matrix for the default eigen method, or to make it possible to use the SparseM method on weights that can be "symmetrized" in this way.

### Usage

    similar.listw(listw)

### Arguments

`listw` | a `listw` object created for example by `nb2listw`

### Value

a `listw` object

### Author(s)

Roger Bivand Roger.Bivand@nhh.no

### References

Ord, J. K. 1975 Estimation methods for models of spatial interaction, Journal of the American Statistical Association, 70, 120-126

### See Also

`asMatrixCsrListw`, `lagsarlm`, `errorsarlm`

### Examples

    data(oldcol)
    COL.W <- nb2listw(COL.nb, style="W")
    COL.S <- nb2listw(COL.nb, style="S")
    log(prod(1 - 0.5 * eigenw(COL.W)))
    log(prod(1 - 0.5 * eigenw(similar.listw(COL.W))))
    Det <- getMethod("det", "matrix.csr")
    log(Det(asMatrixCsrIrW(asMatrixCsrListw(similar.listw(COL.W)), 0.5)))
    log(prod(1 - 0.5 * eigenw(COL.S)))
    log(prod(1 - 0.5 * eigenw(similar.listw(COL.S))))
    log(Det(asMatrixCsrIrW(asMatrixCsrListw(similar.listw(COL.S)), 0.5)))

[Package spdep version 0.3-25 Index]