https://github.com/inseefr/btb
An R package which provides functions dedicated to urban analysis and kernel density estimation.
https://github.com/inseefr/btb
statistical-package
Last synced: 8 months ago
JSON representation
An R package which provides functions dedicated to urban analysis and kernel density estimation.
- Host: GitHub
- URL: https://github.com/inseefr/btb
- Owner: InseeFr
- License: gpl-3.0
- Created: 2021-09-16T14:27:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T10:17:22.000Z (about 1 year ago)
- Last Synced: 2025-09-22T05:23:51.456Z (9 months ago)
- Topics: statistical-package
- Language: C++
- Homepage: https://inseefr.github.io/btb
- Size: 5.49 MB
- Stars: 16
- Watchers: 5
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
Awesome Lists containing this project
README
# Beyond the Border 
[](https://github.com/InseeFr/btb/actions/workflows/R-CMD-check.yaml)
[](https://cran.r-project.org/package=btb)
`btb` ("Beyond the Border - Kernel Density Estimation for Urban Geography") is an R package which provides functions dedicated to urban analysis and density estimation using the KDE (kernel density estimator) method.
A partial transposition of the package in Python is also available: [btbpy](https://github.com/InseeFrLab/btbpy).
## Description
The `btb_smooth()` function allows you to square and smooth geolocated data. It calculates a classical kernel smoothing (conservative) or a geographically weighted median. There are four major call modes of the function.
- The first call mode is `btb_smooth(obs, epsg, cellsize, bandwidth)` for a classical kernel smoothing and automatic grid.
- The second call mode is `btb_smooth(obs, epsg, cellsize, bandwidth, quantiles)` for a geographically weighted median and automatic grid.
- The third call mode is `btb_smooth(obs, epsg, cellsize, bandwidth, centroids)` for a classical kernel smoothing and user grid.
- The fourth call mode is `btb_smooth(obs, epsg, cellsize, bandwidth, quantiles, centroids)` for a geographically weighted median and user grid.
## Installation
`btb` is available on CRAN and can therefore be readily installed
```
install.packages("btb")
```
To get a bug fix or to use a feature from the development version, you can install the development version of from GitHub :
```
install.packages("devtools")
devtools::install_github("InseeFr/btb")
```
## Usage
Details on how to use the package can be found in its [documentation](man). Some applications for spatial smoothing are presented in [chapter 8](https://www.insee.fr/en/statistiques/fichier/3635545/imet131-l-chapitre-8.pdf) of the [Handbook of Spatial Analysis](https://www.insee.fr/en/information/3635545) published by Insee. You advise you to start by consulting the [vignette](https://inseefr.github.io/btb/articles/btb.html) of the package
## Contributions
Maintainer: Solène Colin
Creators, authors and contributors:
- Arlindo DOS SANTOS [aut],
- François SEMECURBE [aut],
- Julien PRAMIL [aut]
- Solène COLIN [cre, ctb],
- Kim ANTUNEZ [ctb],
- Auriane RENAUD [ctb],
- Farida MAROUCHI [ctb]
- Joachim TIMOTEO [ctb]
## References
- Geographically weighted summary statistics : a framework for localised exploratory data analysis, C.Brunsdon & al., in Computers, Environment and Urban Systems C.Brunsdon & al. (2002) [doi:10.1016/S0198-9715(01)00009-6](https://doi.org/10.1016/S0198-9715(01)00009-6)
- Statistical Analysis of Spatial and Spatio-Temporal Point Patterns, Third Edition, Diggle, pp. 83-86, (2003) [doi:10.1080/13658816.2014.937718](https://doi.org/10.1080/13658816.2014.937718).