{"adoption": {"forks": 189, "observed_at": "2026-08-28T04:04:11.473594+00:00", "stars": 1268}, "canonical_url": "https://ross.abutalabs.com/products/us-potus-model", "card": {"archived": false, "artifact_type": "application", "description": "Code for a dynamic multilevel Bayesian model to predict US presidential elections. Written in R and Stan.", "domain": ["data-science", "analytics"], "enriched": true, "function": ["machine-learning", "data-science", "data-visualization"], "health_score": 20, "homepage": "https://projects.economist.com/us-2020-forecast/president", "language": "HTML", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["TheEconomist/us-potus-model"], "name": "TheEconomist/us-potus-model", "platform": ["python", "cli"], "pushed_at": "2020-10-15T16:41:36+00:00", "repo": "TheEconomist/us-potus-model", "stars": 1268, "tags": ["bayesian-model", "stan", "election-forecasting", "r", "polling", "political-science", "politics"], "topics": [], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/us-potus-model", "repo": "TheEconomist/us-potus-model", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T05:03:36.153889+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7451ebf07fb53da5f2ca43cd0e60fb93ca5ce4bd25c7d62209a8a515cce4ee53", "fetched_at": "2026-08-28T04:04:11.473594+00:00", "kind": "readme", "missing": false, "url": "https://github.com/TheEconomist/us-potus-model"}, {"content_hash": "329f17d4dd4fe6c64dc109c477a7ea6a047ed012c821df24fba35fbfb58ee38d", "fetched_at": "2026-08-29T12:15:15.371113+00:00", "kind": "homepage", "missing": false, "url": "https://projects.economist.com/us-2020-forecast/president"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T05:03:36.153889+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7451ebf07fb53da5f2ca43cd0e60fb93ca5ce4bd25c7d62209a8a515cce4ee53", "fetched_at": "2026-08-28T04:04:11.473594+00:00", "kind": "readme", "missing": false, "url": "https://github.com/TheEconomist/us-potus-model"}, {"content_hash": "329f17d4dd4fe6c64dc109c477a7ea6a047ed012c821df24fba35fbfb58ee38d", "fetched_at": "2026-08-29T12:15:15.371113+00:00", "kind": "homepage", "missing": false, "url": "https://projects.economist.com/us-2020-forecast/president"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T05:03:36.153889+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7451ebf07fb53da5f2ca43cd0e60fb93ca5ce4bd25c7d62209a8a515cce4ee53", "fetched_at": "2026-08-28T04:04:11.473594+00:00", "kind": "readme", "missing": false, "url": "https://github.com/TheEconomist/us-potus-model"}, {"content_hash": "329f17d4dd4fe6c64dc109c477a7ea6a047ed012c821df24fba35fbfb58ee38d", "fetched_at": "2026-08-29T12:15:15.371113+00:00", "kind": "homepage", "missing": false, "url": "https://projects.economist.com/us-2020-forecast/president"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T05:03:36.153889+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7451ebf07fb53da5f2ca43cd0e60fb93ca5ce4bd25c7d62209a8a515cce4ee53", "fetched_at": "2026-08-28T04:04:11.473594+00:00", "kind": "readme", "missing": false, "url": "https://github.com/TheEconomist/us-potus-model"}, {"content_hash": "329f17d4dd4fe6c64dc109c477a7ea6a047ed012c821df24fba35fbfb58ee38d", "fetched_at": "2026-08-29T12:15:15.371113+00:00", "kind": "homepage", "missing": false, "url": "https://projects.economist.com/us-2020-forecast/president"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T05:03:36.153889+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7451ebf07fb53da5f2ca43cd0e60fb93ca5ce4bd25c7d62209a8a515cce4ee53", "fetched_at": "2026-08-28T04:04:11.473594+00:00", "kind": "readme", "missing": false, "url": "https://github.com/TheEconomist/us-potus-model"}, {"content_hash": "329f17d4dd4fe6c64dc109c477a7ea6a047ed012c821df24fba35fbfb58ee38d", "fetched_at": "2026-08-29T12:15:15.371113+00:00", "kind": "homepage", "missing": false, "url": "https://projects.economist.com/us-2020-forecast/president"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T05:03:36.153889+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7451ebf07fb53da5f2ca43cd0e60fb93ca5ce4bd25c7d62209a8a515cce4ee53", "fetched_at": "2026-08-28T04:04:11.473594+00:00", "kind": "readme", "missing": false, "url": "https://github.com/TheEconomist/us-potus-model"}, {"content_hash": "329f17d4dd4fe6c64dc109c477a7ea6a047ed012c821df24fba35fbfb58ee38d", "fetched_at": "2026-08-29T12:15:15.371113+00:00", "kind": "homepage", "missing": false, "url": "https://projects.economist.com/us-2020-forecast/president"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.473594+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T05:03:36.153889+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7451ebf07fb53da5f2ca43cd0e60fb93ca5ce4bd25c7d62209a8a515cce4ee53", "fetched_at": "2026-08-28T04:04:11.473594+00:00", "kind": "readme", "missing": false, "url": "https://github.com/TheEconomist/us-potus-model"}, {"content_hash": "329f17d4dd4fe6c64dc109c477a7ea6a047ed012c821df24fba35fbfb58ee38d", "fetched_at": "2026-08-29T12:15:15.371113+00:00", "kind": "homepage", "missing": false, "url": "https://projects.economist.com/us-2020-forecast/president"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T05:03:36.153889+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7451ebf07fb53da5f2ca43cd0e60fb93ca5ce4bd25c7d62209a8a515cce4ee53", "fetched_at": "2026-08-28T04:04:11.473594+00:00", "kind": "readme", "missing": false, "url": "https://github.com/TheEconomist/us-potus-model"}, {"content_hash": "329f17d4dd4fe6c64dc109c477a7ea6a047ed012c821df24fba35fbfb58ee38d", "fetched_at": "2026-08-29T12:15:15.371113+00:00", "kind": "homepage", "missing": false, "url": "https://projects.economist.com/us-2020-forecast/president"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T05:03:36.153889+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7451ebf07fb53da5f2ca43cd0e60fb93ca5ce4bd25c7d62209a8a515cce4ee53", "fetched_at": "2026-08-28T04:04:11.473594+00:00", "kind": "readme", "missing": false, "url": "https://github.com/TheEconomist/us-potus-model"}, {"content_hash": "329f17d4dd4fe6c64dc109c477a7ea6a047ed012c821df24fba35fbfb58ee38d", "fetched_at": "2026-08-29T12:15:15.371113+00:00", "kind": "homepage", "missing": false, "url": "https://projects.economist.com/us-2020-forecast/president"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T05:03:36.153889+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7451ebf07fb53da5f2ca43cd0e60fb93ca5ce4bd25c7d62209a8a515cce4ee53", "fetched_at": "2026-08-28T04:04:11.473594+00:00", "kind": "readme", "missing": false, "url": "https://github.com/TheEconomist/us-potus-model"}, {"content_hash": "329f17d4dd4fe6c64dc109c477a7ea6a047ed012c821df24fba35fbfb58ee38d", "fetched_at": "2026-08-29T12:15:15.371113+00:00", "kind": "homepage", "missing": false, "url": "https://projects.economist.com/us-2020-forecast/president"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2392, "days_push": 2148, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}