Spatial lag operator

Description

Spatial lagging method for vectors or pseries objects.

Usage

1
2
## S3 method for class 'pseries'
slag(x, listw, maxlag, ...)

Arguments

x

an object of class pseries

listw

an object of class listw

maxlag

the spatial lag order (including lower)

...

additional arguments to be passed

Value

a pseries

Author(s)

Giovanni Millo

Examples

1
2
3
4
5
6
7
data(Produc, package="plm")
data(usaww)
usalw <- mat2listw(usaww)
fm <- log(gsp)~log(pcap)+log(pc)+log(emp)+unemp+slag(log(pcap),
  listw=usalw)
slxmod <- spreml(fm, data=Produc, w = usaww,
  model="pooling", lag=FALSE, errors="ols")