REGION (Dec 2022)

An introduction to pspatreg

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

DOI
https://doi.org/10.18335/region.v9i2.450
Journal volume & issue
Vol. 9, no. 2

Abstract

Read online

This article introduces a new R package (pspatreg) for the estimation of semiparametric spatial autoregressive models. pspatreg fits penalized spline semiparametric spatial autoregressive models via Restricted Maximum Likelihood or Maximum Likelihood. These models are very flexible since they make it possible to simultaneously control for spatial dependence, nonlinearities in the functional form, and spatio-temporal heterogeneity. The package also allows to estimate parametric spatial autoregressive models for both cross sectional and panel data (with fixed effects), thus avoiding the use of different libraries. The official demos, vignettes, and tutorials of the package are distributed either in CRAN or GitHub. This article illustrates the potential of the package by using an application to cross-sectional data.