sar.model: Functions for Spatial Auto-regressive Model

sar.modelR Documentation

Functions for Spatial Auto-regressive Model

Description

  • get_rho(): MLE of \rho in SAR model. See psar.

  • sar.fit(): Fit SAR model with given \rho.

  • set_rook_matrix(): Construct Rook weight adjacency matrix.

  • logLik(), BIC(), residuals(), coef().

Usage

get_rho(x, y, w)

sar.fit(x, y, w)

## S3 method for class 'sarpboost'
residuals(object, ...)

## S3 method for class 'sarpboost'
logLik(object, ...)

## S3 method for class 'sarpboost'
BIC(object, ...)

## S3 method for class 'sarpboost'
coef(object, ...)

set_rook_matrix(rNum, cNum)

Arguments

x

Numeric feature matrix.

y

Response vector.

w

Weight matrix (row-sum scaled).

object

Object.

...

Arguments.

rNum

Number of row units in Rook structure.

cNum

Number of column units in Rook structure.

Value

Value or list.


pboost documentation built on May 24, 2026, 9:08 a.m.