spsurvey

spsurvey: Spatial Sampling Design and Analysis in R

https://github.com/usepa/spsurvey

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.9%) to scientific vocabulary

Keywords

ord
Last synced: 9 months ago · JSON representation

Repository

spsurvey: Spatial Sampling Design and Analysis in R

Basic Info
Statistics
  • Stars: 17
  • Watchers: 12
  • Forks: 9
  • Open Issues: 1
  • Releases: 13
Topics
ord
Created about 9 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License

README.md

spsurvey

Project Status: Active – The project has reached a stable, usable state and is being actively developed. CRAN cran checks R-CMD-check Downloads

Overview

spsurvey is an R package that implements a design-based approach to statistical inference, with a focus on spatial data. Spatially balanced samples are selected using the Generalized Random Tessellation Stratified (GRTS) algorithm. The GRTS algorithm can be applied to finite resources (point geometries) and infinite resources (linear / linestring and areal / polygon geometries) and flexibly accommodates a diverse set of sampling design features, including stratification, unequal inclusion probabilities, proportional (to size) inclusion probabilities, legacy (historical) sites, a minimum distance between sites, and two options for replacement sites (reverse hierarchical order and nearest neighbor). Data are analyzed using a wide range of analysis functions that perform categorical variable analysis, continuous variable analysis, attributable risk analysis, risk difference analysis, relative risk analysis, change analysis, and trend analysis. spsurvey can also be used to summarize objects, visualize objects, select samples that are not spatially balanced, select panel samples, measure the amount of spatial balance in a sample, adjust design weights, and more. For additional details, see Dumelle et al. (2023) doi:10.18637/jss.v105.i03.

Installation

You can install and load the most recent approved version from CRAN by running

```r

install the most recent approved version from CRAN

install.packages("spsurvey")

load the most recent approved version from CRAN

library(spsurvey) ```

You can install and load the most recent development version ofspsurvey from GitHub by running:

```r

Installing from GitHub requires you first install the remotes package

install.packages("remotes")

install the most recent development version from GitHub

remotes::install_github("USEPA/spsurvey", ref = "main")

load the most recent development version from GitHub

library(spsurvey) ```

You can install the most recent development version of spsurvey from GitHub with package vignettes by running: r install the most recent development version from GitHub with package vignettes devtools::install_github("USEPA/spsurvey", build_vignettes=TRUE)

To view the vignettes in RStudio, run r vignette("start-here", "spsurvey") # start with this vignette for an spsurvey overview vignette("EDA", "spsurvey") # for summaries and visualizations (exploratory data analysis) vignette("sampling", "spsurvey") # for spatially balanced sampling vignette("analysis", "spsurvey") # for analyzing data

To view the vignettes in a web format, visit here.

Further detail regarding spsurvey is contained in the package's documentation manual available for download here.

Citation

If you used spsurvey in your work, please cite it. You can view the most recent citation by running r citation(package = "spsurvey")

```

> To cite spsurvey in publications use:

>

> Michael Dumelle, Tom Kincaid, Anthony R. Olsen, Marc Weber (2023).

> spsurvey: Spatial Sampling Design and Analysis in R. Journal of

> Statistical Software, 105(3), 1-29. doi:10.18637/jss.v105.i03

>

> A BibTeX entry for LaTeX users is

>

> @Article{,

> title = {{spsurvey}: Spatial Sampling Design and Analysis in {R}},

> author = {Michael Dumelle and Tom Kincaid and Anthony R. Olsen and Marc Weber},

> journal = {Journal of Statistical Software},

> year = {2023},

> volume = {105},

> number = {3},

> pages = {1--29},

> doi = {10.18637/jss.v105.i03},

> }

```

Package Contributions

We encourage users to submit issues and enhancement requests so we may continue to improve spsurvey.

Acknowledgements

The United States Environmental Protection Agency (EPA) GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity , confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.

A special thank you to Virginia Vichi-Miller for creating the spsurvey hex sticker (i.e., graphic identifier). The sticker represents the environmental sampling context for which spsurvey was created, with an emphasis on aquatic resources. The sticker shows a sunny day filled with a fish swimming in water, aquatic vegetation, and rolling hills and trees. The word spsurvey is set against the backdrop of the clear sky.

License

This project is licensed under the GNU General Public License, GPL-3.

Owner

  • Name: U.S. Environmental Protection Agency
  • Login: USEPA
  • Kind: organization
  • Location: United States of America

GitHub Events

Total
  • Issues event: 2
  • Watch event: 4
  • Issue comment event: 1
  • Fork event: 4
Last Year
  • Issues event: 2
  • Watch event: 4
  • Issue comment event: 1
  • Fork event: 4

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 759
  • Total Committers: 7
  • Avg Commits per committer: 108.429
  • Development Distribution Score (DDS): 0.411
Past Year
  • Commits: 30
  • Committers: 2
  • Avg Commits per committer: 15.0
  • Development Distribution Score (DDS): 0.1
Top Committers
Name Email Commits
Michael Dumelle m****e@g****m 447
Marc H. Weber m****6@g****m 168
Olsen O****y@e****v 69
Tom Kincaid K****m@e****v 68
Michael Dumelle 5****e 4
tonyolsen t****4@g****m 2
Julia Ortiz o****a@e****v 1
Committer Domains (Top 20 + Academic)
epa.gov: 3

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 20
  • Total pull requests: 16
  • Average time to close issues: 2 months
  • Average time to close pull requests: 9 days
  • Total issue authors: 13
  • Total pull request authors: 4
  • Average comments per issue: 2.25
  • Average comments per pull request: 0.44
  • Merged pull requests: 12
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: about 1 month
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mhweber (5)
  • jasonelaw (2)
  • nstauffer (2)
  • sagesteppe (2)
  • kaitlynstrickfaden (1)
  • bodacious-bill (1)
  • sckott (1)
  • KateMMiller (1)
  • Grasslandgit (1)
  • stallinc (1)
  • lmitchell4 (1)
  • mgm-cincy-epa (1)
  • michaeldumelle (1)
Pull Request Authors
  • michaeldumelle (13)
  • mhweber (2)
  • tonyolsen (1)
  • jasonelaw (1)
Top Labels
Issue Labels
enhancement (2) bug (2) question (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 901 last-month
  • Total docker downloads: 1,409
  • Total dependent packages: 4
  • Total dependent repositories: 10
  • Total versions: 31
  • Total maintainers: 1
cran.r-project.org: spsurvey

Spatial Sampling Design and Analysis

  • Versions: 31
  • Dependent Packages: 4
  • Dependent Repositories: 10
  • Downloads: 901 Last month
  • Docker Downloads: 1,409
Rankings
Dependent repos count: 9.2%
Dependent packages count: 9.3%
Forks count: 12.2%
Stargazers count: 14.1%
Average: 14.5%
Downloads: 17.3%
Docker downloads count: 25.1%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • sf * depends
  • survey >= 4.1 depends
  • MASS * imports
  • boot * imports
  • crossdes * imports
  • deldir * imports
  • grDevices * imports
  • graphics * imports
  • lme4 * imports
  • sampling * imports
  • stats * imports
  • units * imports
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite