Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 days 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 (8 months ago)
- Default Branch: main
- Last Pushed: 2025-01-23T06:15:27.000Z (5 days ago)
- Last Synced: 2025-01-23T07:20:42.933Z (5 days ago)
- Topics: geographical-detector, geoinformatics, geospatial-analysis, r, spatial-statistics, spatial-stratified-heterogeneity
- Language: R
- Homepage: https://stscl.github.io/gdverse/
- Size: 14.4 MB
- Stars: 32
- 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
)
```[![cran](https://www.r-pkg.org/badges/version/gdverse)](https://CRAN.R-project.org/package=gdverse)
[![downloads_all](https://badgen.net/cran/dt/gdverse?color=orange)](https://CRAN.R-project.org/package=gdverse)
[![downloads_month](https://cranlogs.r-pkg.org/badges/gdverse)](https://CRAN.R-project.org/package=gdverse)
[![r-universe](https://stscl.r-universe.dev/badges/gdverse?color=cyan)](https://stscl.r-universe.dev/gdverse)**Analysis of Spatial Stratified Heterogeneity**
## Overview
Current models and functions provided by **gdverse** are:
| *Model* | *Function* | *Support* |
|---------------------|--------------------|------------------|
|[GeoDetector](https://doi.org/10.1080/13658810802443457)|`geodetector()`| ✔️ |
|[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
```