Learn R Programming

sphet (version 2.0)

circular: Generate circular weigthing matrices

Description

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

Usage

circular(nrow, ncol, ab)

Value

An object of class nb

Arguments

nrow

Number of rows

ncol

Number of columns

ab

Ahead - behind

Author

Gianfranco Piras gpiras@mac.com

Details

Generate circular weigthing matrices

Examples

Run this code
ab.3 <- circular(10, 10, 3)
ab.5 <-  circular(15, 15, 5)

Run the code above in your browser using DataLab