Science Score: 33.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 2 DOI reference(s) in README -
✓Academic publication links
Links to: arxiv.org -
✓Committers with academic emails
2 of 9 committers (22.2%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.9%) to scientific vocabulary
Keywords
Repository
Bayesian Spatial Bradley--Terry
Basic Info
Statistics
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
- Releases: 4
Topics
Metadata Files
README.md
BSBT 
Bayesian Spatial Bradley--Terry
<!-- badges: end -->
📦 The BSBT R package allows you to fit the Bayesian Spatial Bradley--Terry model to comparative judgement data sets. The package estimates the quality of each object in the data set based on the observed comparisons. The package includes functions to construct the prior distribution covariance matrix from a network or set of coordinates. The package also contains functions to run a number of different MCMC algorithms to estimate the level of deprivation in each aobject in the data set. Also included is a comparative judgement data set on deprivation in Dar es Salaam, Tanzania.
Installation
You can install BSBT by calling the following commands:
```{r}
install.packages("BSBT")
devtools::install_github("rowlandseymour/BSBT", dependencies = TRUE) #for development version
```
Creating a Network from a Set of Areas
The first step is to create a network from the set of areas. Here's an example of a network made from Local Authority Areas in the England:
There are two ways to do this in BSBT. The first is to construct an adjacency matrix, which describes which areas are neighbours. This can then be fed into constrained_adjacent_covariance_function. The second way is to use coordinates which can be used withconstrained_covariance_matrix. This uses the Euclidean distance metric.
Fitting the Model
The BSBT package uses MCMC the estimate the model parameters. The MCMC can be run by calling the run_mcmc function. This make take some time, up to a few hours, depending on how many areas there are in the model. Here are the results of the method applied to a comparative judgement data set in Tanzania:

Data
In the package, there is a comparative judgement data set collected in Dar es Salaam, Tanzania. It includes over 75,000 comparisons, where citizens where are to compare subwards in the city based on deprivation. Also included are shapefiles for the 452 subwards. These can be accessed by calling data(dar.comparisons, package = "BSBT") and data(dar.shapefiles, package = "BSBT").
There is also code for simulating comparative judgement data given the underlying levels of deprivation. More information can be found by calling ?BSBT::simulate_contests
The Package in Action
R. G. Seymour, D. Sirl, S. Preston, I. L. Dryden, M. J. A. Ellis, B. Perrat, & J. Goulding. (2020). The Bayesian Spatial Bradley–Terry Model: Urban Deprivation Modeling in Tanzania. arXiv:2010.14128.
Seymour, R. G., Sirl, D, Preston, S & Goulding, J 2023, Multi-Level Spatial Comparative Judgement Models To Map Deprivation. in Proceedings of the Joint Statistical Meetings 2023. Zenodo, Joint Statistical Meetings 2023. https://doi.org/10.5281/zenodo.8314257
R. G. Seymour, A. Nyarko-Agyei, H. R. McCabe, K. Severn, T. Kypraios, D. Sirl, A. Taylor. (2023). Comparative Judgement Modeling to Map Forced Marriage at Local Levels. arXiv:2212.01202
Using citizen knowledge to model urban deprivation @ Universitas21 Early Career Researcher Workshop 2020 - Modern Slavery, Forced Labour and Human Trafficking: Research Roadmaps to 2030. Deceber 2020.
Acknowledgements
This work is supported by the Engineering and Physical Sciences Research Council [grant numbers EP/T003928/1, EP/R513283/1], the Economic and Social Sciences Research Council [ES/V015370/1], the Research England Policy Support Fund and the Big East African Data Science research group at the University of Nottingham.
The comparative judgement dataset was collected by Madeleine Ellis, James Goulding, Bertrand Perrat, Gavin Smith and Gregor Engelmann. We gratefully acknowledge the Rights Lab at the University of Nottingham for supporting funding for the comprehensive ground truth survey. We also acknowledge Humanitarian Street Mapping Team (HOT) for providing a team of experts in data collection to facilitate the surveys. This fieldwork was also supported by the EPSRC Horizon Centre for Doctoral Training - My Life in Data (EP/L015463/1) and by EPSRC grant Neodemographics (EP/L021080/1).


Owner
- Name: Rowland Seymour
- Login: rowlandseymour
- Kind: user
- Location: Nottingham
- Company: University of Nottingham
- Website: rowlandseymour.com
- Repositories: 2
- Profile: https://github.com/rowlandseymour
GitHub Events
Total
Last Year
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Rowland Seymour | r****r@n****k | 125 |
| Rowland Seymour | R****r@n****k | 24 |
| Rowland Seymour | r****d@R****n | 18 |
| rowlandseymour | r****r@g****m | 17 |
| Rowland Guy Seymour | p****3@i****n | 15 |
| diggerb | j****s@b****k | 3 |
| Rowland G Seymour | p****2@i****e | 2 |
| Rowland Seymour | r****r@m****e | 2 |
| Yichi Zhang | z****1@o****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: over 2 years ago
All Time
- Total issues: 0
- Total pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: 8 minutes
- Total issue authors: 0
- Total pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 0.33
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- rowlandseymour (2)
- Yichizz (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 272 last-month
- Total docker downloads: 41,971
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
cran.r-project.org: BSBT
The Bayesian Spatial Bradley–Terry Model
- Homepage: https://github.com/rowlandseymour/BSBT
- Documentation: http://cran.r-project.org/web/packages/BSBT/BSBT.pdf
- License: GPL-3
- Status: removed
-
Latest release: 1.2.1
published over 3 years ago
Rankings
Maintainers (1)
Dependencies
- R >= 2.10 depends
- MASS * imports
- expm * imports
- igraph * imports
- stats * imports
- utils * imports
- RColorBrewer * suggests
- RSQLite * suggests
- deldir * suggests
- knitr * suggests
- rmarkdown * suggests
- sf * suggests
- spdep * suggests
- surveillance * suggests
- testthat * suggests
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite