Science Score: 39.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README -
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.4%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: maikol-solis
- License: other
- Language: R
- Default Branch: main
- Homepage: https://cran.r-project.org/package=spatgeom
- Size: 109 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
- Releases: 3
Metadata Files
README.md
Geometric goodness of fit
Description
The spatgeom package provides goodness-of-fit tests for spatial point process models.
The spatgeom package provides the implementation to perform the geometric spatial point analysis developed in Hernández & Solís (2022) doi:10.1007/s00180-022-01244-1. It estimates the geometric goodness-of-fit index for a set of variables against a response one based on the 'sf' package. The package has methods to print and plot the results.
Installation
The package is currently available on CRAN and can be installed using:
r
install.packages("spatgeom")
and loaded using the following command:
r
library(spatgeom)
Usage
Estimating the geometric goodness-of-fit index
The package has one main function spatgeom that takes as input a set of variables and a response one.
For example, this is how you can use the package to estimate the geometric goodness-of-fit index with a set of variables in a donut shape against a response one:
```r xy <- donut_data(n = 100, a = -1, b = 1, theta = 2 * pi) estimation <- spatgeom(y = xy[, 1], x = xy[, -1])
```
The package allow to estimate the envelope of the curve using the parameter envelope=TRUE:
r
estimation <- spatgeom(y = xy[, 1], x = xy[, -1], envelope = TRUE)
In the example, the estimation object is a list of class spatgeom with the following elements:
- call: The function call.
- x: x input.
- y: y output.
- results: A list of size
ncol(x)corresponding to each column of x. Each element of the list has:- triangles: a data frame of class sfc (see [
sf::st_sf()])with columns geometry, segments, maxlength and alpha. The data.frame contains the whole Delanauy triangulation for the corresponding column of x and y. The segments column are the segments of each individual triangle and maxlength is the maximum length of them. - geom_indices: a data frame with columns alpha and geomcorr. The alpha column is a numeric vector of size nalphas from the minimum to the maximum distance between points estimated in the data. The geomcorr column is the value 1 - (alpha shape Area)/(containing box Area).
- intensity: the intensity estimated for the corresponding column of x and y.
- mean_n: the mean number of points in the point process.
- envelope_data: a data frame in tidy format with 40 runs of a CSR process, if envelope=TRUE, The CSR is created by generating n uniform points in the plane, where n is drawn from Poisson distribution with parameter mean_n.
- triangles: a data frame of class sfc (see [
Printing and plotting the results
The package has a print method for objects of class spatgeom:
r
print(estimation)
and a plot method for objects of class spatgeom. The plot method has two options: curve and deriv. The curve option plots the curve of of the goodness-of-fit index. The deriv option plots the numerical derivative.
r
plot_curve(estimation, type = "curve")
plot_curve(estimation, type = "deriv")
Citation
If you use the spatgeom package in your work, please cite the following paper:
Hernández, D. and Solís, F. (2022). Geometric goodness-of-fit tests for spatial point process models. Statistics and Computing, 32(1), 1-19. doi:10.1007/s00180-022-01244-1
Solís, M., Hernández, A., & Pasquier, C. (2023). spatgeom: Geometric Spatial Point Analysis (0.3.0). https://cran.r-project.org/web/packages/spatgeom/index.html
License
This package is free and open source software, licensed under MIT License. See the LICENSE file for details.
Owner
- Name: Maikol Solís
- Login: maikol-solis
- Kind: user
- Location: San Jose, Costa Rica
- Company: Universidad de Costa Rica
- Website: maikolsolis.com
- Repositories: 38
- Profile: https://github.com/maikol-solis
GitHub Events
Total
- Delete event: 2
- Push event: 7
- Pull request review event: 2
- Pull request review comment event: 2
- Pull request event: 4
- Create event: 1
Last Year
- Delete event: 2
- Push event: 7
- Pull request review event: 2
- Pull request review comment event: 2
- Pull request event: 4
- Create event: 1
Committers
Last synced: over 3 years ago
All Time
- Total Commits: 73
- Total Committers: 1
- Avg Commits per committer: 73.0
- Development Distribution Score (DDS): 0.0
Top Committers
| Name | Commits | |
|---|---|---|
| Maikol Solís | m****s@u****r | 73 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: almost 2 years ago
All Time
- Total issues: 1
- Total pull requests: 9
- Average time to close issues: N/A
- Average time to close pull requests: 3 months
- Total issue authors: 1
- Total pull request authors: 3
- Average comments per issue: 0.0
- Average comments per pull request: 0.11
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 4
Past Year
- Issues: 0
- Pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: 3 months
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
- maikol-solis (1)
Pull Request Authors
- pre-commit-ci[bot] (10)
- maikol-solis (2)
- EdgarHernandezAvila (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 174 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 3
- Total maintainers: 1
cran.r-project.org: spatgeom
Geometric Spatial Point Analysis
- Homepage: https://github.com/maikol-solis/spatgeom
- Documentation: http://cran.r-project.org/web/packages/spatgeom/spatgeom.pdf
- License: MIT + file LICENSE
-
Latest release: 0.3.0
published about 3 years ago
Rankings
Maintainers (1)
Dependencies
- R >= 3.6.0 depends
- cowplot * imports
- dplyr * imports
- ggplot2 * imports
- lwgeom * imports
- purrr * imports
- scales * imports
- sf * imports
- knitr * suggests
- rmarkdown * suggests
- testthat >= 2.1.0 suggests