Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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

# gdverse gdverse website

[![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
```