Spatio-Temporal Regression Modeling

Implements a spatio-temporal regression model based on Chi, G. and Zhu, J. (2019) Spatial Regression Models for the Social Sciences . The approach here fits a spatial error model while incorporating a temporally lagged response variable and temporally lagged explanatory variables. This package builds on the errorsarlm() function from the spatialreg package.


strm

strm

strm is an R package that fits spatio-temporal regression model based on Chi & Zhu Spatial Regression Models for the Social Sciences (2019). The approach here fits a simultaneous spatial error model (SAR) while incorporating a temporally lagged response variable and temporally lagged explanatory variables.

News

  • 2022-01-10: Resolved issue #38 with patch 0.1.3.
  • 2021-03-21: Resolved issue #34 with patch 0.1.2.

Installation

This package builds on the errorsarlm() function from the spatialreg package.

This package is still under development. Please report bugs or constructive tips to issues here.

strm was built on R version 4.0.2 ("Taking Off Again").

Package dependencies include:

- R (>= 3.6),
- spatialreg (>= 1.1-5),

Package imports include:

- dplyr (>= 1.0.0),
- rlang (>= 0.4.6),
- tidyr (>= 1.0.0),
- purrr (>= 0.3.4),
- magrittr (>= 1.5),
- rgdal (>= 1.5.10),
- spdep (>= 1.1.3),
- lazyeval,
- stats,
- grDevices,
- methods,
- graphics,
- utils,
- knitr,
- testthat (>= 2.3.2),
- rmarkdown (>= 2.3)

Package suggests include:

- spdep (>= 1.1-3),
- sf (>= 0.9-4),
- tidycensus (>= 0.9.9),
- ggplot2 (3.3.2),
- patchwork (>= 1.0.1),
- gt (>= 0.2.2)

To download the latest version of strm:

library("devtools")
devtools::install_github("mkamenet3/strm")

Travis build status

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("strm")

0.1.3 by Maria Kamenetsky, 5 years ago


Report a bug at https://github.com/mkamenet3/strm/issues


Browse source code at https://github.com/cran/strm


Authors: Maria Kamenetsky [aut, cre] , Guangqing Chi [aut] , Jun Zhu [aut]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports rlang, dplyr, tidyr, purrr, magrittr, rgdal, testthat, rmarkdown, knitr, stats, grDevices, methods, graphics, utils

Depends on spatialreg

Suggests spdep, rgeos, sf, Ecdat, tidycensus, ggplot2, patchwork, gt, markdown

System requirements: C++11, GDAL (>= 1.11.4), GEOS (>= 3.4.0), PROJ (>= 6.3.1)


See at CRAN