Skip to contents

Performs row standardization of a spatial weights matrix. Each row is divided by its sum, so that the weights in each row sum to 1.

Usage

row_standardize(W)

Arguments

W

Spatial weights matrix.

Value

Row-standardized weights matrix.

Details

Row standardization is commonly used in spatial autocorrelation statistics. Rows with zero sum are left unchanged to avoid division by zero.