Learn R Programming

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")

Copy Link

Version

Install

install.packages('strm')

Monthly Downloads

21

Version

0.1.3

License

GPL (>= 2)

Maintainer

Maria Kamenetsky

Last Published

January 19th, 2022

Functions in strm (0.1.3)

usaww

usaww Spatial weights matrix of the 48 continental united states based on the Queen's neighborhood structure.
createlagvars

createlagvars
wi_raw

wi_raw sf dataframe: Wisconsin 5-Year County-Level Raw ACS Data
sptdmg3

sptdmg3 SpatialPolygonsDataFrame: Wisconsin Minor Civil Divisions
strm

strm: Spatio-temporal regression model