Learn R Programming

sphet (version 1.7)

circular: Generate "circular" weighting matrices

Description

The function generates k-ahead and k-behind weighting matrices as in Kelejian and Prucha (1999)

Usage

circular(nrow, ncol, ab)

Arguments

nrow

number of rows

ncol

number of columns

ab

ahead - behind

Value

An object of class nb.

Examples

Run this code
# NOT RUN {
ab.4<-circular(10, 10, 3)
# }

Run the code above in your browser using DataLab