coalitions
coalitions: Coalition probabilities in multi-party democracies - Published in JOSS (2018)
Science Score: 95.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 5 DOI reference(s) in README and JOSS metadata -
○Academic publication links
-
✓Committers with academic emails
2 of 13 committers (15.4%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
coalition-probabilities
election-analysis
elections
r
rstats
Scientific Fields
Engineering
Computer Science -
40% confidence
Last synced: 6 months ago
·
JSON representation
Repository
Coalition probabilities in multi-party democracies
Basic Info
- Host: GitHub
- Owner: adibender
- License: other
- Language: R
- Default Branch: master
- Homepage: https://adibender.github.io/coalitions/
- Size: 6.54 MB
Statistics
- Stars: 23
- Watchers: 3
- Forks: 4
- Open Issues: 1
- Releases: 13
Topics
coalition-probabilities
election-analysis
elections
r
rstats
Created over 12 years ago
· Last pushed over 1 year ago
Metadata Files
Readme
Changelog
License
Code of conduct
README.Rmd
---
output: github_document
---
```{r options, echo=FALSE}
library(knitr)
opts_chunk$set(warning=FALSE)
```
# coalitions
[](https://travis-ci.org/adibender/coalitions)
[](https://ci.appveyor.com/project/adibender/coalitions)
[](https://codecov.io/github/adibender/coalitions?branch=master)
[](https://cran.r-project.org/package=coalitions)
[](https://cran.r-project.org/package=coalitions)
[](https://opensource.org/licenses/MIT)
## Overview
The `coalitions` package implements a Bayesian framework for the estimation of
event probabilities in multi-party electoral systems (Bauer et al., 2019) like Germany, Austria etc.
To support estimation, the package also implements scrappers that
obtain data for German federal and general elections as well as Austrian
general election. The implementation can be extended to support other elections.
- To get started, see our [workflow vignette](https://adibender.github.io/coalitions/articles/workflow.html)
- Check out our [interactive shiny app](https://koala.stat.uni-muenchen.de/) on
German (state and federal) elections/surveys
- Updates are available from our [KOALA_LMU twitter account](https://twitter.com/KOALA_LMU)!
## Installation
```{r, eval=FALSE}
# To install from CRAN use:
install.packages("coalitions")
# To install the most current version from GitHub use:
devtools::install_github("adibender/coalitions")
```
## Usage
Detailed workflow is outlined in the
[workflow](https://adibender.github.io/coalitions/articles/workflow.html)
vignette.
A short overview is presented below.
### Scrape surveys
The wrapper `get_surveys()` which takes no arguments, downloads all surveys
currently available at [wahlrecht](https://www.wahlrecht.de/umfragen) and
stores them in a nested `tibble`:
```{r, message = FALSE}
library(coalitions)
library(dplyr)
library(tidyr)
surveys <- get_surveys()
surveys
```
Each row represents a polling agency and each row in the `surveys` column again
contains a nested `tibble` with survey results from different time-points:
```{r}
surveys %>%
filter(pollster == "allensbach") %>%
unnest()
survey <- surveys %>% unnest() %>% slice(1)
survey %>% unnest()
```
### Calculate coalition probabilities
For each survey (row) we can calculate the coalition probabilities
```{r}
survey %>% get_probabilities(nsim=1e4) %>% unnest()
```
## References
Bauer, Alexander, Andreas Bender, André Klima, and Helmut Küchenhoff. 2019. “KOALA: A New Paradigm for Election Coverage.” AStA Advances in Statistical Analysis, June. https://doi.org/10.1007/s10182-019-00352-6.
Bender, Andreas, and Alexander Bauer. 2018. “Coalitions: Coalition Probabilities in Multi-Party Democracies,” March. https://doi.org/10.21105/joss.00606.
Owner
- Name: Andreas Bender
- Login: adibender
- Kind: user
- Company: LMU
- Website: https://twitter.com/adiBender
- Repositories: 25
- Profile: https://github.com/adibender
JOSS Publication
coalitions: Coalition probabilities in multi-party democracies
Published
March 11, 2018
Volume 3, Issue 23, Page 606
Authors
Tags
coalitions rstats coalition probabilities political scienceGitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| adibender | b****R@g****m | 268 |
| adibender | b****s@g****m | 30 |
| bauer-alex | a****3@g****t | 21 |
| bauer-alex | a****3@p****e | 12 |
| bauer-alex | a****r@s****e | 7 |
| Frederick Solt | f****t@m****m | 4 |
| Daniel Schlichting | d****g@w****e | 4 |
| schade-rebekka | w****e@p****e | 2 |
| Romain Francois | r****n@r****m | 1 |
| Hadley Wickham | h****m@g****m | 1 |
| Andreas Hueck | a****k@g****m | 1 |
| unknown | b****l@W****e | 1 |
| ri87rul | b****r@c****e | 1 |
Committer Domains (Top 20 + Academic)
posteo.de: 2
campus.lmu.de: 1
wap33.stat.uni-muenchen.de: 1
rstudio.com: 1
mac.com: 1
stat.uni-muenchen.de: 1
gmx.net: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 36
- Total pull requests: 64
- Average time to close issues: 3 months
- Average time to close pull requests: 4 days
- Total issue authors: 6
- Total pull request authors: 6
- Average comments per issue: 1.33
- Average comments per pull request: 0.34
- Merged pull requests: 58
- 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
- adibender (19)
- bauer-alex (12)
- mbflex (2)
- hmeleiro (1)
- paugrau (1)
- HeidiSeibold (1)
Pull Request Authors
- adibender (47)
- bauer-alex (12)
- schade-rebekka (2)
- fsolt (1)
- romainfrancois (1)
- hadley (1)
Top Labels
Issue Labels
enhancement (12)
bug (10)
addition (8)
low priority (4)
priority: urgent (3)
CRAN (2)
question (1)
Pull Request Labels
enhancement (15)
bug (6)
addition (5)
CRAN (1)
priority: urgent (1)
Packages
- Total packages: 1
-
Total downloads:
- cran 350 last-month
- Total docker downloads: 41,971
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 10
- Total maintainers: 1
cran.r-project.org: coalitions
Bayesian "Now-Cast" Estimation of Event Probabilities in Multi-Party Democracies
- Homepage: https://adibender.github.io/coalitions/
- Documentation: http://cran.r-project.org/web/packages/coalitions/coalitions.pdf
- License: MIT + file LICENSE
- Status: removed
-
Latest release: 0.6.24
published over 3 years ago
Rankings
Stargazers count: 12.2%
Forks count: 12.8%
Average: 23.4%
Downloads: 26.8%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.2.1 depends
- RCurl * imports
- checkmate * imports
- dplyr > 0.5.0 imports
- ggplot2 * imports
- gtools * imports
- jsonlite * imports
- lubridate * imports
- magrittr * imports
- purrr > 0.2.2 imports
- rlang * imports
- rvest * imports
- stringr * imports
- tibble >= 3.0.0 imports
- tidyr >= 1.0.0 imports
- xml2 * imports
- covr * suggests
- testthat * suggests
