Skip to contents

Formula: w'_ij = w_ij / sum_j w_ij

Usage

Rownorm(W)

Arguments

W

See Usage.

Value

List with W (normalised), row_sums, islands, n.

References

Anselin (1988), Spatial Econometrics: Methods and Models, Kluwer. Not held locally; row standardisation w_ij / sum_j w_ij is the standard published convention and is what spdep's style = 'W' computes.

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
Rownorm(V)
#> $W
#>      [,1]
#> [1,]    1
#> [2,]    1
#> [3,]    1
#> [4,]    1
#> [5,]    1
#> [6,]    1
#> [7,]    1
#> [8,]    1
#> 
#> $row_sums
#> [1] 1 2 3 4 5 6 7 8
#> 
#> $islands
#> integer(0)
#> 
#> $n
#> [1] 8
#> 
#> $method
#> [1] "Row-normalised spatial weights"
#> 
#> attr(,"class")
#> [1] "morie_rich_result" "list"