Mathematics (Nov 2024)

Pspatreg: R Package for Semiparametric Spatial Autoregressive Models

  • Román Mínguez,
  • Roberto Basile,
  • María Durbán

DOI
https://doi.org/10.3390/math12223598
Journal volume & issue
Vol. 12, no. 22
p. 3598

Abstract

Read online

This article introduces the R package pspatreg, which is publicly available for download from the Comprehensive R Archive Network, for estimating semiparametric spatial econometric penalized spline (P-Spline) models. These models can incorporate a nonparametric spatiotemporal trend, a spatial lag of the dependent variable, independent variables, noise, and time-series autoregressive noise. The primary functions in this package cover the estimation of P-Spline spatial econometric models using either Restricted Maximum Likelihood (REML) or Maximum Likelihood (ML) methods, as well as the computation of marginal impacts for both parametric and nonparametric terms. Additionally, the package offers methods for the graphical display of estimated nonlinear functions and spatial or spatiotemporal trend maps. Applications to cross-sectional and panel spatial data are provided to illustrate the package’s functionality.

Keywords