Skip to content

agregR

1.0.4Package record

Bayesian State-Space Aggregation of Brazilian Presidential Polls

0packages depend
2.4Kdownloads / year
86.3%test coverage
13/13flavors OK

Overview

About

A set of dynamic measurement models to estimate latent vote shares from noisy polling sources. The models build on Jackman (2009, ISBN: 9780470011546) and feature specialized methods for bias adjustment based on past performance and correction for asymmetric errors based on candidate political alignment.

Changes in 1.0.4
  • Fixed priors for non-aligned candidates causing vote share to exceed 100%
  • Fixed month names displaying in English in international servers
  • Fixed vote share labels collision
  • Removed spike priors for scales in volatility parameters
  • Updated repo for cmdstanr

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 5 earlier changesHide 5 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-03-29
  • ERROR9 OK, 3 NOTE, 1 ERROR2026-03-17
  • NOTE8 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.0.4
READMEYes · 2,061 wordsVignettesNoNEWSYes · 100% structured · mentions 1.0.4Citation fileNoWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
8
Examples that run
100%7 run in a plain check
Exported functions with examples
100%
Documented parameters
98%
Return-value docs
100%
Help pages citing references
0%

Downloads

2.4K
CRAN downloads in the past year
Rank #9,842 · ~7/day · ~199/mo
Daily download trend is not available in this view yet.
36730 days
99790 days
2.4K1 year
Compare downloads with other packages →
Also on289 r2u

Repository

4Stars
1Forks
2Open issues
0Open PRs
4Releases
300Commits
1Commit identities
bayesian-inferencerstanstate-space-modelstime-seriescmdstan
300 commits · Last activity 2026-10-16 · 0% stars, 30d · Default branch at 1.0.4.9000, ahead of CRAN 1.0.4 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
57
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2026-03-06 · 12026-07-25 · 4
PracticesBeta

8 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/rnmag/agregr on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-10-09 · The repository has a site deploy workflow

pkgdown site last built 2026-10-09

Coverage (1)
Coverage reporting
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
22 external dependencies (excludes base and recommended)

Installing agregR adds 61 packages (37 with compiled code, 42 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, showtextdb 1.9 MB.

Depends (2)
R >= 4.1.0ggdist
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 1.0.3 (2026)
Releases (2)

Pick two releases to compare their code metrics.

  • 1.0.4Latest
    record
    2026-08-21 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.3
    record
    2026-03-06
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-03-06
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Additional repositories
stan-dev.r-universe.dev
Minimum R
≥ 4.1.0
Bundled data
1.1 MB / 1 file
Download size
4.5 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("agregR")
Magalhães, R. N. (2026). agregR: Bayesian State-Space Aggregation of Brazilian Presidential Polls (Version 1.0.4) [Computer software]. https://doi.org/10.32614/CRAN.package.agregR

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for agregR version 1.0.4 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy