{
  "_id": "6a23ca22530b9bc726be14b0",
  "Package": "coalitions",
  "Type": "Package",
  "Title": "Bayesian \"Now-Cast\" Estimation of Event Probabilities in\nMulti-Party Democracies",
  "Version": "0.6.27",
  "Date": "2026-04-12",
  "Authors@R": "c(\nperson(\"Andreas\", \"Bender\", , \"bender.at.R@gmail.com\", role = c(\"aut\", \"cre\"), comment=c(ORCID = \"0000-0001-5628-8611\")),\nperson(\"Alexander\", \"Bauer\", , \"alexander.bauer@stat.uni-muenchen.de\", role=c(\"aut\"), comment=c(ORCID = \"0000-0003-3495-5131\")),\nperson(\"Rebekka\", \"Schade\", , \"rebekka.schade@stablab.stat.uni-muenchen.de\", role=c(\"ctb\")))",
  "Maintainer": "Andreas Bender <bender.at.R@gmail.com>",
  "Description": "An implementation of a Bayesian framework for the opinion\npoll based estimation of event probabilities in multi-party\nelectoral systems (Bender and Bauer (2018)\n<doi:10.21105/joss.00606>).",
  "Encoding": "UTF-8",
  "License": "MIT + file LICENSE",
  "URL": "https://koala-lmu.github.io/coalitions/",
  "BugReports": "https://github.com/KOALA-LMU/coalitions/issues",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "Config/pak/sysreqs": "libicu-dev libxml2-dev libssl-dev",
  "Repository": "https://koala-lmu.r-universe.dev",
  "Date/Publication": "2026-06-05 11:19:03 UTC",
  "RemoteUrl": "https://github.com/koala-lmu/coalitions",
  "RemoteRef": "HEAD",
  "RemoteSha": "c4a47e8c8292c88ffd5090560c1ade9f89be2b72",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-06 07:16:21 UTC",
    "User": "root"
  },
  "Author": "Andreas Bender [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-5628-8611>),\nAlexander Bauer [aut] (ORCID: <https://orcid.org/0000-0003-3495-5131>),\nRebekka Schade [ctb]",
  "MD5sum": "cae5f4908989e289f344381bdd625227",
  "_user": "koala-lmu",
  "_type": "src",
  "_file": "coalitions_0.6.27.tar.gz",
  "_fileid": "c69823fe500acebd6e9216b89d1e2c8bfd56c99bc68223cb122deb49bf528898",
  "_filesize": 211277,
  "_sha256": "c69823fe500acebd6e9216b89d1e2c8bfd56c99bc68223cb122deb49bf528898",
  "_created": "2026-06-06T07:16:21.000Z",
  "_published": "2026-06-06T07:48:12.010Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79860358982,
      "time": 149,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7452354016"
    },
    {
      "job": 79860358984,
      "time": 147,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7452353820"
    },
    {
      "job": 79860358962,
      "time": 159,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7452352107"
    },
    {
      "job": 79860358948,
      "time": 190,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7452354148"
    },
    {
      "job": 79860196180,
      "time": 162,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7452333601"
    },
    {
      "job": 79860358947,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7452348212"
    },
    {
      "job": 79860358945,
      "time": 154,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7452354581"
    },
    {
      "job": 79860358952,
      "time": 90,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7452346326"
    },
    {
      "job": 79860358969,
      "time": 88,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7452346119"
    }
  ],
  "_buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/27055917577",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/koala-lmu/coalitions",
  "_commit": {
    "id": "c4a47e8c8292c88ffd5090560c1ade9f89be2b72",
    "author": "adibender <bender.at.R@gmail.com>",
    "committer": "adibender <bender.at.R@gmail.com>",
    "message": "Update URLs after transfer to KOALA-LMU org\n\n- DESCRIPTION: URL -> koala-lmu.github.io/coalitions, BugReports -> KOALA-LMU repo\n- _pkgdown.yml: site url + repo href\n- README(.Rmd/.md): badges and links; replace dead Travis/AppVeyor badges in\n  README.Rmd with R-CMD-check + codecov; install_github(\"KOALA-LMU/coalitions\")\n- NEWS: 0.6.28 (dev) entry noting the move; fix 404ing pkgdown article link\n- paper/ left untouched (published JOSS artifact)\n",
    "time": 1780658343
  },
  "_maintainer": {
    "name": "Andreas Bender",
    "email": "bender.at.r@gmail.com",
    "login": "adibender",
    "description": "",
    "uuid": 1672665,
    "orcid": "0000-0001-5628-8611"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.2.1",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "gtools",
      "role": "Imports"
    },
    {
      "package": "rvest",
      "role": "Imports"
    },
    {
      "package": "xml2",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": "> 0.2.2",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": "> 0.5.0",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 3.0.0",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    }
  ],
  "_owner": "koala-lmu",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-12",
      "n": 7
    },
    {
      "week": "2026-23",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.6.26",
      "date": "2026-03-19"
    },
    {
      "name": "v.0.6.27",
      "date": "2026-06-02"
    }
  ],
  "_topics": [
    "coalition-probabilities",
    "election-analysis",
    "elections"
  ],
  "_stars": 24,
  "_contributors": [
    {
      "user": "adibender",
      "count": 384,
      "uuid": 1672665
    },
    {
      "user": "hssnippets",
      "count": 31,
      "uuid": 6241920
    },
    {
      "user": "bauer-alex",
      "count": 13,
      "uuid": 20172676
    },
    {
      "user": "fsolt",
      "count": 4,
      "uuid": 6536645
    },
    {
      "user": "schade-rebekka",
      "count": 2,
      "uuid": 66470616
    },
    {
      "user": "andinatro",
      "count": 1,
      "uuid": 13495926
    },
    {
      "user": "hadley",
      "count": 1,
      "uuid": 4196
    },
    {
      "user": "romainfrancois",
      "count": 1,
      "uuid": 2625526
    }
  ],
  "_userbio": {
    "uuid": 31904705,
    "type": "organization",
    "name": "Coalition Analysis (LMU)",
    "description": "Coalition Analyses developed by the Statistical Consulting Unit (LMU)"
  },
  "_downloads": {
    "count": 529,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/coalitions"
  },
  "_devurl": "https://github.com/koala-lmu/coalitions",
  "_pkgdown": "https://koala-lmu.github.io/coalitions/",
  "_searchresults": 100,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/coalitions.html",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/koala-lmu/coalitions",
  "_realowner": "koala-lmu",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.6.2",
      "date": "2018-03-15"
    },
    {
      "version": "0.6.4",
      "date": "2018-08-27"
    },
    {
      "version": "0.6.5",
      "date": "2018-10-06"
    },
    {
      "version": "0.6.10",
      "date": "2019-07-15"
    },
    {
      "version": "0.6.12",
      "date": "2020-02-06"
    },
    {
      "version": "0.6.15",
      "date": "2020-08-31"
    },
    {
      "version": "0.6.18",
      "date": "2021-03-19"
    },
    {
      "version": "0.6.20",
      "date": "2021-06-30"
    },
    {
      "version": "0.6.23",
      "date": "2022-05-02"
    },
    {
      "version": "0.6.24",
      "date": "2022-08-17"
    },
    {
      "version": "0.6.27",
      "date": "2026-05-08"
    }
  ],
  "_exports": [
    "%>%",
    "as_survey",
    "calculate_prob",
    "calculate_probs",
    "collapse_parties",
    "dHondt",
    "draw_from_posterior",
    "get_entryprobability",
    "get_latest",
    "get_meta",
    "get_probabilities",
    "get_seats",
    "get_surveys",
    "get_surveys_brb",
    "get_surveys_by",
    "get_surveys_nds",
    "get_surveys_rp",
    "get_surveys_saxony",
    "get_surveys_thuringen",
    "gg_survey",
    "hare_niemeyer",
    "have_majority",
    "pool_surveys",
    "prettify_de",
    "prettify_en",
    "prettify_strings",
    "redistribute",
    "scrape_by",
    "scrape_ltw",
    "scrape_rp",
    "scrape_wahlrecht",
    "sls"
  ],
  "_datasets": [
    {
      "name": "party_colors_de",
      "title": "Colors for German parties",
      "object": "party_colors_de",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "party_labels_de",
      "title": "Labels for German parties",
      "object": "party_labels_de",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "surveys_sample",
      "title": "Sample of selected surveys",
      "object": "surveys_sample",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "pollster",
        "surveys"
      ],
      "rows": 3,
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calculate_prob",
      "title": "Calculate coalition probability from majority table",
      "topics": [
        "calculate_prob"
      ]
    },
    {
      "page": "calculate_probs",
      "title": "Calculate coalition probabilities for multiple coalitions",
      "topics": [
        "calculate_probs"
      ]
    },
    {
      "page": "collapse_parties",
      "title": "Transform surveys in long format",
      "topics": [
        "collapse_parties"
      ]
    },
    {
      "page": "dHondt",
      "title": "Seat Distribution by D'Hondt",
      "topics": [
        "dHondt"
      ]
    },
    {
      "page": "draw_from_posterior",
      "title": "Draw random numbers from posterior distribution",
      "topics": [
        "draw_from_posterior"
      ]
    },
    {
      "page": "get_probabilities",
      "title": "Wrapper for calculation of coalition probabilities from survey",
      "topics": [
        "get_probabilities"
      ]
    },
    {
      "page": "get_seats",
      "title": "Calculate seat distribution from draws from posterior",
      "topics": [
        "get_seats"
      ]
    },
    {
      "page": "get_surveys",
      "title": "Scrape surveys from all pollsters",
      "topics": [
        "get_latest",
        "get_surveys",
        "get_surveys_brb",
        "get_surveys_by",
        "get_surveys_nds",
        "get_surveys_rp",
        "get_surveys_saxony",
        "get_surveys_thuringen"
      ]
    },
    {
      "page": "gg_survey",
      "title": "Plot voter shares observed in one survey",
      "topics": [
        "gg_survey"
      ]
    },
    {
      "page": "hare_niemeyer",
      "title": "Seat Distribution by Hare/Niemeyer",
      "topics": [
        "hare_niemeyer"
      ]
    },
    {
      "page": "have_majority",
      "title": "Do coalitions have a majority",
      "topics": [
        "have_majority"
      ]
    },
    {
      "page": "party_colors_de",
      "title": "Colors for German parties",
      "topics": [
        "party_colors_de"
      ]
    },
    {
      "page": "party_labels_de",
      "title": "Labels for German parties",
      "topics": [
        "party_labels_de"
      ]
    },
    {
      "page": "pool_surveys",
      "title": "Obtain pooled survey during specified period",
      "topics": [
        "pool_surveys"
      ]
    },
    {
      "page": "redistribute",
      "title": "Calculate percentage of votes/seats after excluding parties with 'votes < hurdle'",
      "topics": [
        "redistribute"
      ]
    },
    {
      "page": "scrape",
      "title": "Scrape surveys for German general election",
      "topics": [
        "scrape_by",
        "scrape_ltw",
        "scrape_rp",
        "scrape_wahlrecht"
      ]
    },
    {
      "page": "sls",
      "title": "Seat Distribution by Sainte-Lague/Schepers",
      "topics": [
        "sls"
      ]
    },
    {
      "page": "surveys_sample",
      "title": "Sample of selected surveys",
      "topics": [
        "surveys_sample"
      ]
    },
    {
      "page": "try_readHTML",
      "title": "Try call of read_html that throws an error if the url cannot be resolved",
      "topics": [
        "try_readHTML"
      ]
    }
  ],
  "_pkglogo": "https://github.com/koala-lmu/coalitions/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/koala-lmu/coalitions/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "backports",
    "checkmate",
    "cli",
    "cpp11",
    "curl",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "gtools",
    "httr",
    "isoband",
    "jsonlite",
    "labeling",
    "lifecycle",
    "lubridate",
    "magrittr",
    "mime",
    "openssl",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "rlang",
    "rvest",
    "S7",
    "scales",
    "selectr",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xml2"
  ],
  "_score": 6.401400540781544,
  "_indexed": true,
  "_nocasepkg": "coalitions",
  "_universes": [
    "koala-lmu",
    "adibender"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.27",
      "date": "2026-06-06T07:18:31.000Z",
      "distro": "noble",
      "commit": "c4a47e8c8292c88ffd5090560c1ade9f89be2b72",
      "fileid": "be18725ef25cbd5a99475569c279be7a6be517421b8f7f791f0ea3b419e2ee36",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/27055917577"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.6.27",
      "date": "2026-06-06T07:18:29.000Z",
      "distro": "noble",
      "commit": "c4a47e8c8292c88ffd5090560c1ade9f89be2b72",
      "fileid": "46a7f98c8b20969e6375ec6f1d81f3d5136df61d54da95d2661dd9c0ec2b68ba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/27055917577"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.27",
      "date": "2026-06-06T07:18:29.000Z",
      "commit": "c4a47e8c8292c88ffd5090560c1ade9f89be2b72",
      "fileid": "7c1a81d13526d59b836ce49c5706e94dccf1885b611ba6a3ac63a063c94249ef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/27055917577"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.6.27",
      "date": "2026-06-06T07:18:33.000Z",
      "commit": "c4a47e8c8292c88ffd5090560c1ade9f89be2b72",
      "fileid": "51e73f46682c45e7e195a6e82b30cc70d046b6d156ec08546261e083be87cf83",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/27055917577"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.27",
      "date": "2026-06-06T07:18:22.000Z",
      "commit": "c4a47e8c8292c88ffd5090560c1ade9f89be2b72",
      "fileid": "21304639db2a6d4ab6faebdca6cd14cffcd1183d9d6bc2cabf5d252898d55b53",
      "status": "success",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/27055917577"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.27",
      "date": "2026-06-06T07:18:27.000Z",
      "commit": "c4a47e8c8292c88ffd5090560c1ade9f89be2b72",
      "fileid": "54e061dc63663b128786e50146227eccdd0d61e104cb8fb8abcc41aa82842fd9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/27055917577"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6.27",
      "date": "2026-06-06T07:17:26.000Z",
      "commit": "c4a47e8c8292c88ffd5090560c1ade9f89be2b72",
      "fileid": "23d53300c1431427999554f1cbfdc25e6f8ad33cc971fec1868408c7cad0954b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/27055917577"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.6.27",
      "date": "2026-06-06T07:17:26.000Z",
      "commit": "c4a47e8c8292c88ffd5090560c1ade9f89be2b72",
      "fileid": "855a88cd73fedc26466bc153fe151e1d736df572a38711c7661324ac72d465dd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/27055917577"
    }
  ]
}