Skip to content

rankingQ

0.2.0Package record

Design-Based Methods for Ranking Questions

0packages depend
615downloads / year
85.8%test coverage
13/13flavors OK

Overview

About

Provides a design-based toolkit for survey ranking questions. Estimates average ranks, marginal rank probabilities, pairwise comparisons, and ranking distributions, with optional bias correction for random responding via anchor-ranking items or user-supplied random-response rates. Includes Plackett-Luce simulation, visualization, format conversion, and diagnostic checks. Methods are described in Atsusaka and Kim (2025) doi:10.1017/pan.2024.33.

Changes in 0.2.0
  • First CRAN submission. The package was previously available on GitHub under version 0.1.0.
  • The bundled identity and identity_w datasets now use item names for the marginal-rank columns: party, religion, gender, race (previously app_identity_1--app_identity_4) and household, neighborhood, city, state (previously anc_identity_1--anc_identity_4). Examples and vignettes now pass these columns explicitly, e.g. main_q = c("party", "religion", "gender", "race").
  • New exported function rank_wider() for converting long-format ranking data to wide format (one column per item or a single pasted ranking string).
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0
  • imprr_direct(): anc_correct is now optional. Users can instead supply p_random directly, or rely on anchor-based estimation of the non-random response rate.
  • New exported convenience wrapper add_ipw_weights() for returning the original data augmented with respondent-level IPW weights, with an option to also keep ranking summaries.
  • imprr_direct_rcpp(): correctly delegates to imprr_direct() when method = "fixed", forwarding all population and assumption inputs.
  • rpluce(): when all remaining Plackett-Luce weights become zero after earlier draws, the remaining items are now sampled uniformly at random rather than being ordered by input position.
  • rank_longer(): stricter validation on the reference argument and clearer handling of single- vs multi-column input.
  • Stronger input validation across the package: weights must be finite, non-negative, and sum to a positive number; J must be finite; permutation labels are parsed consistently across compact, delimited, and fixed-width formats (including J > 9).
  • Permutation-label infrastructure rewritten to support rankings of arbitrary size.
  • Documentation: switched to \href{}{} for external URLs; expanded examples and \value{} sections.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 5.5 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OKNow
  • OK7 OK2026-08-22
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 381 wordsVignettesYes · 6 · dynamicNEWSYes · 100% structured · mentions 0.2.0Citation fileNoWebsiteYes · pkgdown
Help pages
25 (1 internal)includes a package overview page
Examples that run
100%19 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

615
CRAN downloads in the past year
Rank #21,857 · ~2/day · ~51/mo
Daily download trend is not available in this view yet.
20730 days
61590 days
6151 year
Compare downloads with other packages →
Also on29 r2u1 autocran

Repository

3Stars
0Forks
0Open issues
0Open PRs
0Releases
333Commits
2Commit identities
measurement-errorrankingsurveyrank-orderranking-datasurvey-designquestionnaire-design
License file reads as GPL-3.0 · 333 commits · Last activity 2026-08-26
Responsiveness
How these are sampled
PRs merged (all time)
50%
Median days to close, 50 most recently updated closed issues
165
Median days to close, 50 most recently updated closed PRs
82

Issues over time

2026-08-22 · 12026-08-28 · 0
PracticesBeta

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

Checks run against github.com/sysilviakim/rankingq on 2026-10-25.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-08-26 · The repository has a site deploy workflow

pkgdown site last built 2026-08-26

Reproducibility and dev environment (1)
renv
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-11-06
    Pull request: opened by its own account
  • Claude Codefirst seen 2026-01-21
    Named in .Rbuildignore: .claude
    Named in .gitignore: .claude
    Commits: at least 2 crediting it in the message
Models named in its commits
  • Claude Opus 4.52 commits · Jan 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing rankingQ adds 34 packages (18 with compiled code, 32 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, Rcpp 1.8 MB.

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

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 0.2.0 (2026), Copyright holder
Author, Copyright holder
Releases (1)
  • 0.2.0Latest
    2026-08-21 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-08-21
Total releases
1 / 1 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.1.0
Bundled data
37 KB / 2 files
Download size
1.1 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("rankingQ")
Kim, S. S., & Atsusaka, Y. (2026). rankingQ: Design-Based Methods for Ranking Questions (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.rankingQ

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 rankingQ version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, 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