Skip to contents

\(W^k x\), spdep::lag.listw applied k times.

Usage

LagOperator(W, x, power = 1L)

Arguments

W

Spatial weights matrix.

x

Numeric vector.

power

Order k (non-negative).

Value

Numeric vector.

Examples

LagOperator(matrix(c(0, 1, 0, .5, 0, .5, 0, 1, 0), 3, byrow = TRUE), c(1, 2, 4))
#> [1] 2.0 2.5 2.0