Learn R Programming

mgwrsar (version 1.3.1)

mgwrsar-class: Class of mgwrsar Model.

Description

A S4 class to represent the results of MGWRSAR, TDS-MGWR and related spatial models.

Arguments

Slots

Betav

matrix. The estimated varying coefficients, dimension (n, kv).

Betac

numeric. The estimated constant coefficients, length kc.

Model

character. The type of model (e.g., "GWR", "MGWR", "SAR", "tds_mgwr").

fixed_vars

character. A vector with names of spatially constant covariates.

Y

numeric. The dependent variable.

XC

matrix. The explanatory variables with constant coefficients.

XV

matrix. The explanatory variables with varying coefficients.

X

matrix. All explanatory variables.

W

Matrix. The spatial weight matrix for spatial dependence (row-standardized).

isgcv

logical. Indicates if Leave-One-Out Cross-Validation (LOOCV) has been computed.

edf

numeric. The estimated effective degrees of freedom.

formula

formula. The model formula.

data

data.frame. The dataframe used for computation.

Method

character. The estimation technique for spatial dependence models ('2SLS' or 'B2SLS'). Default is '2SLS'.

coords

matrix. The spatial coordinates of observations.

H

numeric. The bandwidth vector (spatial).

Ht

numeric. The bandwidth vector (temporal), if applicable.

kernels

character. The kernel type(s) used (e.g., 'gauss', 'bisq').

adaptive

logical. Indicates if an adaptive kernel (nearest neighbors) was used.

Type

character. The type of Generalized Kernel Product ('GD' for spatial, 'GDT' for spatio-temporal).

TP

numeric. Indices of target points (if a subset was used).

SSRtp

numeric. The residual sum of squares calculated only on target points.

SSR

numeric. The total residual sum of squares.

residuals

numeric. The vector of residuals.

fit

numeric. The vector of fitted values.

pred

numeric. The vector of predicted values (out-of-sample).

sev

matrix. Local standard errors of varying coefficients.

se

numeric. Standard errors of constant coefficients.

tS

numeric. The trace of the Hat matrix (effective number of parameters).

Shat

matrix. The Hat matrix (or approximation).

R_k

list. List of partial Hat matrices by covariate (for MGWR inference).

h_w

numeric. The bandwidth value used for computing the spatial weight matrix W. Default is 0.

kernel_w

character. The kernel type used for computing W. Default is NULL.

RMSE

numeric. Root Mean Square Error (on training data).

RMSEtp

numeric. Root Mean Square Error computed on target points.

CV

numeric. Leave-One-Out Cross-Validation score.

AIC

numeric. Akaike Information Criterion.

AICc

numeric. Corrected Akaike Information Criterion.

AICctp

numeric. Corrected AIC for target points.

BIC

numeric. Bayesian Information Criterion.

R2

numeric. R-squared.

R2_adj

numeric. Adjusted R-squared.

get_ts

logical. Indicates if the trace of the Hat matrix (Tr(S)) was stored.

NN

numeric. The maximum number of neighbors used for weight computation (truncation parameter).

ncore

numeric. Number of CPU cores used.

mycall

call. The original function call.

ctime

numeric. Computation time in seconds.

HRMSE

matrix. History of RMSE values (for iterative algorithms like backfitting).

HBETA

list. History of estimated Beta coefficients at each iteration.

loglik

numeric. Log-likelihood value.

G

list. List containing neighboring indices and distances (knn object).

V

numeric. Sequence of spatial bandwidths tested (for TDS algorithms).

Vt

numeric. Sequence of temporal bandwidths tested (for TDS algorithms).

Z

numeric. Temporal or auxiliary variable for GDT kernel type.

TS

numeric. Diagonal elements of the Hat Matrix.

alpha

numeric. Ratio parameter for GDT kernels (balancing space and time).

HM

matrix. Matrix of optimal bandwidths per covariate (for TDS).

HKmin

numeric. Minimum allowed bandwidth per covariate (for TDS).

HKMIN

list. List of minimum bandwidths per covariate for spatio-temporal models (TDS).

isolated_idx

numeric. Indices of observations without sufficient neighbors.

my_crs

ANY. Coordinate Reference System (CRS) information.