{
  "_id": "6a1df7f11d7bb097a0a5c898",
  "Encoding": "UTF-8",
  "Type": "Package",
  "Package": "agregR",
  "Authors@R": "person(\"Rafael N.\", \"Magalhães\", email = \"rnunesmagalhaes@gmail.com\", role = c(\"aut\", \"cre\"))",
  "URL": "https://rnmag.github.io/agregR/, https://github.com/rnmag/agregR",
  "Title": "Bayesian State-Space Aggregation of Brazilian Presidential Polls",
  "Description": "A set of dynamic measurement models to estimate latent\nvote shares from noisy polling sources. The models build on\nJackman (2009, ISBN: 9780470011546) and feature specialized\nmethods for bias adjustment based on past performance and\ncorrection for asymmetric errors based on candidate political\nalignment.",
  "Version": "1.0.3",
  "Additional_repositories": "https://mc-stan.org/r-packages/",
  "SystemRequirements": "CmdStan\n(https://mc-stan.org/users/interfaces/cmdstan)",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "License": "MIT + file LICENSE",
  "Config/pak/sysreqs": "cmake libfontconfig1-dev libfreetype6-dev\nlibfribidi-dev make libharfbuzz-dev libicu-dev libjpeg-dev\nlibpng-dev libtiff-dev libuv1-dev libwebp-dev libx11-dev\nzlib1g-dev",
  "Repository": "https://rnmag.r-universe.dev",
  "Date/Publication": "2026-06-01 20:44:58 UTC",
  "RemoteUrl": "https://github.com/rnmag/agregr",
  "RemoteRef": "HEAD",
  "RemoteSha": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-01 21:11:42 UTC",
    "User": "root"
  },
  "Author": "Rafael N. Magalhães [aut, cre]",
  "Maintainer": "Rafael N. Magalhães <rnunesmagalhaes@gmail.com>",
  "MD5sum": "ee5f9d2dcb0c978017602400025a79bf",
  "_user": "rnmag",
  "_type": "src",
  "_file": "agregR_1.0.3.tar.gz",
  "_fileid": "419cdeb7084055d3ae625504b58633e2789b728008b0ca31f6ee16a5135d0e77",
  "_filesize": 4678723,
  "_sha256": "419cdeb7084055d3ae625504b58633e2789b728008b0ca31f6ee16a5135d0e77",
  "_created": "2026-06-01T21:11:42.000Z",
  "_published": "2026-06-01T21:21:53.893Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78949941009,
      "time": 183,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7343182864"
    },
    {
      "job": 78949941010,
      "time": 193,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7343185356"
    },
    {
      "job": 78949940991,
      "time": 178,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7343180870"
    },
    {
      "job": 78949941080,
      "time": 195,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7343185825"
    },
    {
      "job": 78949941087,
      "time": 133,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7343256179"
    },
    {
      "job": 78949941110,
      "time": 352,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7343289438"
    },
    {
      "job": 78949941156,
      "time": 158,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7343236715"
    },
    {
      "job": 78949940985,
      "time": 342,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7343241974"
    },
    {
      "job": 78948866194,
      "time": 361,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7343112452"
    },
    {
      "job": 78949940941,
      "time": 147,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7343166875"
    },
    {
      "job": 78949941021,
      "time": 242,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7343204743"
    },
    {
      "job": 78949941007,
      "time": 186,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7343182839"
    },
    {
      "job": 78949941003,
      "time": 212,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7343191953"
    }
  ],
  "_buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/rnmag/agregr",
  "_commit": {
    "id": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
    "author": "Rafael N. Magalhães <rnunesmagalhaes@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "data update",
    "time": 1780346698
  },
  "_maintainer": {
    "name": "Rafael N. Magalhães",
    "email": "rnunesmagalhaes@gmail.com",
    "login": "rnmag",
    "description": "",
    "uuid": 1709532
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "ggdist",
      "version": ">= 3.1.0",
      "role": "Depends"
    },
    {
      "package": "instantiate",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "ragg",
      "role": "Imports"
    },
    {
      "package": "sysfonts",
      "role": "Imports"
    },
    {
      "package": "showtext",
      "role": "Imports"
    },
    {
      "package": "stringi",
      "role": "Imports"
    },
    {
      "package": "grid",
      "role": "Imports"
    },
    {
      "package": "systemfonts",
      "role": "Imports"
    },
    {
      "package": "bayesplot",
      "role": "Suggests"
    },
    {
      "package": "cmdstanr",
      "version": ">= 0.5.0",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "rnmag",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-05",
      "n": 41
    },
    {
      "week": "2026-06",
      "n": 27
    },
    {
      "week": "2026-07",
      "n": 36
    },
    {
      "week": "2026-08",
      "n": 13
    },
    {
      "week": "2026-09",
      "n": 5
    },
    {
      "week": "2026-10",
      "n": 8
    },
    {
      "week": "2026-11",
      "n": 4
    },
    {
      "week": "2026-14",
      "n": 2
    },
    {
      "week": "2026-16",
      "n": 2
    },
    {
      "week": "2026-17",
      "n": 1
    },
    {
      "week": "2026-18",
      "n": 2
    },
    {
      "week": "2026-19",
      "n": 7
    },
    {
      "week": "2026-20",
      "n": 2
    },
    {
      "week": "2026-21",
      "n": 4
    },
    {
      "week": "2026-22",
      "n": 2
    },
    {
      "week": "2026-23",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.0.0",
      "date": "2026-02-11"
    },
    {
      "name": "v1.0.1",
      "date": "2026-02-17"
    },
    {
      "name": "v1.0.3",
      "date": "2026-03-06"
    }
  ],
  "_topics": [
    "bayesian-inference",
    "cmdstan",
    "stan",
    "state-space-models",
    "time-series"
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "rnmag",
      "count": 159,
      "uuid": 1709532
    }
  ],
  "_userbio": {
    "uuid": 1709532,
    "type": "user",
    "name": "Rafael N. Magalhães"
  },
  "_downloads": {
    "count": 228,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/agregR"
  },
  "_devurl": "https://github.com/rnmag/agregr",
  "_pkgdown": "https://rnmag.github.io/agregR/",
  "_searchresults": 2,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/agregR.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/rnmag/agregr",
  "_realowner": "rnmag",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.3",
      "date": "2026-03-06"
    }
  ],
  "_exports": [
    "configurar_agregador",
    "configurar_grafico",
    "configurar_prioris",
    "grafico_agregador",
    "grafico_priori_posteriori",
    "grafico_vies",
    "rodar_agregador"
  ],
  "_datasets": [
    {
      "name": "historico_pesquisas_poder360",
      "title": "Historical Polls by Poder360",
      "object": "historico_pesquisas_poder360",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id_pesquisa",
        "ano",
        "sigla_uf",
        "nome_municipio",
        "cargo",
        "data",
        "data_referencia",
        "instituto",
        "contratante",
        "orgao_registro",
        "numero_registro",
        "quantidade_entrevistas",
        "margem_mais",
        "margem_menos",
        "tipo",
        "turno",
        "tipo_voto",
        "id_cenario",
        "descricao_cenario",
        "id_candidato_poder360",
        "nome_candidato",
        "sigla_partido",
        "condicao",
        "percentual"
      ],
      "rows": 166292,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "configurar_agregador",
      "title": "Configuration function for Poll Aggregator",
      "topics": [
        "configurar_agregador"
      ]
    },
    {
      "page": "configurar_grafico",
      "title": "Configuration for Graphics",
      "topics": [
        "configurar_grafico"
      ]
    },
    {
      "page": "configurar_prioris",
      "title": "Configuration for Statistical Models",
      "topics": [
        "configurar_prioris"
      ]
    },
    {
      "page": "grafico_agregador",
      "title": "Plot Aggregator Results",
      "topics": [
        "grafico_agregador"
      ]
    },
    {
      "page": "grafico_priori_posteriori",
      "title": "Plot Prior vs Posterior",
      "topics": [
        "grafico_priori_posteriori"
      ]
    },
    {
      "page": "grafico_vies",
      "title": "Plot Institute Bias",
      "topics": [
        "grafico_vies"
      ]
    },
    {
      "page": "historico_pesquisas_poder360",
      "title": "Historical Polls by Poder360",
      "topics": [
        "historico_pesquisas_poder360"
      ]
    },
    {
      "page": "rodar_agregador",
      "title": "Run Poll Aggregator",
      "topics": [
        "rodar_agregador"
      ]
    }
  ],
  "_pkglogo": "https://github.com/rnmag/agregr/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/rnmag/agregr/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "bit",
    "bit64",
    "callr",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "distributional",
    "dplyr",
    "farver",
    "fs",
    "generics",
    "ggdist",
    "ggplot2",
    "glue",
    "gtable",
    "hms",
    "instantiate",
    "isoband",
    "jsonlite",
    "labeling",
    "lifecycle",
    "lubridate",
    "magrittr",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "processx",
    "progress",
    "ps",
    "purrr",
    "quadprog",
    "R6",
    "ragg",
    "RColorBrewer",
    "Rcpp",
    "readr",
    "rlang",
    "S7",
    "scales",
    "showtext",
    "showtextdb",
    "stringi",
    "stringr",
    "sysfonts",
    "systemfonts",
    "textshaping",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr"
  ],
  "_score": 4.204119982655925,
  "_indexed": true,
  "_nocasepkg": "agregr",
  "_universes": [
    "rnmag"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.3",
      "date": "2026-06-01T21:15:55.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "32a1f83df2f5feb6cae752491fa904b0f1b12574e46fb12db4b72190bbd599a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.3",
      "date": "2026-06-01T21:15:54.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "c04be2b3ea04e3061374b5fbb4c0c2ccfb135b563fdb2f0f10d99aaf2cc597b5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.3",
      "date": "2026-06-01T21:15:52.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "7d8b32c8571274ed843829af5b12a14ba026374f9d5f557ca9e28a7c88dcbda8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.3",
      "date": "2026-06-01T21:15:57.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "96f38ee5ae0fee9bce95d70549cee2ba966ad96e83df7f4d20b6128ba757396e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.3",
      "date": "2026-06-01T21:19:27.000Z",
      "arch": "aarch64",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "8dcc0db5ac3cf8ef35c5f8efc568287e8b0149e084def3e8e91aba41a1fddb10",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.3",
      "date": "2026-06-01T21:19:53.000Z",
      "arch": "x86_64",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "8a2b92622969a1b3298070c58c42241be1bf7669ce52ec1e27df853883943e6c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.3",
      "date": "2026-06-01T21:18:21.000Z",
      "arch": "aarch64",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "d6c6bb9fb67aa2428a8d0428235542f37fe5b519951988bd476c1318b5864ef2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.3",
      "date": "2026-06-01T21:17:51.000Z",
      "arch": "x86_64",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "dc559c60727158d4d8ce6406e59f0bab5b911a992a208395e4c2a367a4586b98",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.3",
      "date": "2026-06-01T21:15:47.000Z",
      "arch": "emscripten",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "6a8b811b618fd18691404f500dd0e1341e5f23776a2e0d63a4880bfc29715761",
      "status": "success",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.3",
      "date": "2026-06-01T21:16:24.000Z",
      "arch": "x86_64",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "330a73e0687bd3fa0071701c6fe1e672c16119288cc54600c9e95d3635ee5b2d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.3",
      "date": "2026-06-01T21:15:44.000Z",
      "arch": "x86_64",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "74343f230955ab802bc827d7b6a827add40e655c1dc306d3b7cb8d14fabd5401",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.3",
      "date": "2026-06-01T21:15:55.000Z",
      "arch": "x86_64",
      "commit": "eaeece043c800a7269ece7f7feb5aa337c4d2cdb",
      "fileid": "5f836a207ff5db6b2576be6f40da1b30dcc5ceeb56b7209f4dcdb9d06487dcd8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rnmag/actions/runs/26782120762"
    }
  ]
}