TheEconomist/us-potus-model
Code for a dynamic multilevel Bayesian model to predict US presidential elections. Written in R and Stan. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2392
- days_rel: n/a
- days_push: 2148
- n_releases_24m: 0
Adoption not part of the score
1268 stars · 189 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Code for The Economist's dynamic multilevel Bayesian model to forecast US presidential elections, written in R and Stan. It aggregates state and national polls with corrections for partisan non-response, survey mode, and population, producing state-level and electoral college predictions.
Use cases
- forecast us presidential election outcomes from polling data
- run a bayesian multilevel poll aggregation model in stan
- backtest election forecasting models on 2008 2012 2016 data
- adjust polls for partisan non-response and survey mode bias
- model state-level correlations for electoral college prediction
When to choose
- you need a well-documented, peer-reviewed Bayesian election forecasting model
- you want to reproduce or extend The Economist's 2020 US presidential forecast
- you work in R and Stan and need a real-world multilevel time-series modeling example
When to avoid
- you need forecasts for non-US elections or non-presidential races
- you want a maintained, actively updated tool - it was built for the 2020 election cycle
- you need a production service or GUI rather than R scripts
Facets
application · maturity maintenance
machine-learning data-science data-visualization data-science analytics python cli bayesian-model stan election-forecasting r polling political-science politics
2 sources
- readme: https://github.com/TheEconomist/us-potus-model · fetched 2026-08-28 · 7451ebf07fb5
- homepage: https://projects.economist.com/us-2020-forecast/president · fetched 2026-08-29 · 329f17d4dd4f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| TheEconomist/us-potus-model | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="TheEconomist/us-potus-model")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem