https://github.com/stscl/gdverse
Analysis of Spatial Stratified Heterogeneity
https://github.com/stscl/gdverse
geographical-detector geoinformatics geospatial-analysis r spatial-statistics spatial-stratified-heterogeneity
Last synced: 4 months ago
JSON representation
Analysis of Spatial Stratified Heterogeneity
- Host: GitHub
- URL: https://github.com/stscl/gdverse
- Owner: stscl
- Created: 2024-06-06T13:50:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-10T11:54:19.000Z (10 months ago)
- Last Synced: 2025-08-10T13:20:46.544Z (10 months ago)
- Topics: geographical-detector, geoinformatics, geospatial-analysis, r, spatial-statistics, spatial-stratified-heterogeneity
- Language: R
- Homepage: https://stscl.github.io/gdverse/
- Size: 15.1 MB
- Stars: 38
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "##",
fig.path = "man/figures/README-",
out.width = "100%",
warning = FALSE,
message = FALSE
)
```
[](https://CRAN.R-project.org/package=gdverse)
[](https://CRAN.R-project.org/package=gdverse)
[](https://cran.r-project.org/web/checks/check_results_gdverse.html)
[](https://CRAN.R-project.org/package=gdverse)
[](https://CRAN.R-project.org/package=gdverse)
[](http://www.gnu.org/licenses/gpl-3.0.html)
[](https://github.com/stscl/gdverse/actions/workflows/R-CMD-check.yaml)
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://stscl.r-universe.dev/gdverse)
[](https://onlinelibrary.wiley.com/doi/10.1111/tgis.70032)
**Analysis of Spatial Stratified Heterogeneity**
## Overview
Current models and functions provided by **gdverse** are:
| *Model* | *Function* | *Support* |
|---------------------|--------------------|------------------|
|[GD](https://doi.org/10.1080/13658810802443457)|`gd()`| ✔️ |
|[OPGD](https://doi.org/10.1080/15481603.2020.1760434)|`opgd()`| ✔️ |
|[GOZH](https://doi.org/10.1016/j.isprsjprs.2022.01.009)|`gozh()`| ✔️ |
|[LESH](https://doi.org/10.1080/17538947.2023.2271883)|`lesh()`| ✔️ |
|[SPADE](https://doi.org/10.1080/13658816.2018.1476693)|`spade()`| ✔️ |
|[IDSA](https://doi.org/10.1080/13658816.2021.1882680)|`idsa()`| ✔️ |
|[RGD](https://doi.org/10.1016/j.jag.2022.102782)|`rgd()`| ✔️ |
|[RID](https://doi.org/10.1016/j.spasta.2024.100814)|`rid()`| ✔️ |
|[SRSGD](https://doi.org/10.1016/j.ins.2021.12.019)|`srsgd()`| ✔️ |
## Installation
- Install from [CRAN](https://CRAN.R-project.org/package=gdverse) with:
``` r
install.packages("gdverse", dep = TRUE)
```
- Install development binary version from [R-universe](https://stscl.r-universe.dev/gdverse) with:
``` r
install.packages('gdverse',
repos = c("https://stscl.r-universe.dev",
"https://cloud.r-project.org"),
dep = TRUE)
```
- Install development source version from [GitHub](https://github.com/stscl/gdverse) with:
``` r
# install.packages("devtools")
devtools::install_github("stscl/gdverse",
build_vignettes = TRUE,
dep = TRUE)
```
✨ Please ensure that **Rcpp** is properly installed and the appropriate **C++** compilation environment is configured in advance if you want to install **gdverse** from github.
✨ The **gdverse** package supports the use of robust discretization for the robust geographical detector and robust interaction detector. For details on using them, please refer to .
## Example
```{r example_gdverse}
library(gdverse)
data("ndvi")
ndvi
```
### OPGD model
```{r}
discvar = names(ndvi)[-1:-3]
discvar
ndvi_opgd = opgd(NDVIchange ~ ., data = ndvi,
discvar = discvar, cores = 6)
ndvi_opgd
```
### GOZH model
```{r}
g = gozh(NDVIchange ~ ., data = ndvi)
g
```
## CITATION
Please cite **gdverse** as:
```
Lv, W., Lei, Y., Liu, F., Yan, J., Song, Y. and Zhao, W. (2025), gdverse: An R Package for Spatial Stratified Heterogeneity Family. Transactions in GIS, 29: e70032. https://doi.org/10.1111/tgis.70032
```
A BibTeX entry for LaTeX users is:
``` bib
@article{lyu2025gdverse,
title={{gdverse}: An {R} Package for Spatial Stratified Heterogeneity Family},
volume={29},
ISSN={1467-9671},
number={2},
journal={Transactions in GIS},
publisher={Wiley},
pages = {29:e70032},
author={Lv, Wenbo and Lei, Yangyang and Liu, Fangmei and Yan, Jianwu and Song, Yongze and Zhao, Wufan},
year={2025},
month={mar}
}
```
