Package: csranks 1.3.0

csranks: Statistical Tools for Ranks

Account for uncertainty when working with ranks. Estimate standard errors consistently in linear regression with ranked variables. Construct confidence sets of various kinds for positions of populations in a ranking based on values of a certain feature and their estimation errors. Theory based on Mogstad, Romano, Shaikh, and Wilhelm (2023)<doi:10.1093/restud/rdad006> and Chetverikov and Wilhelm (2023) <doi:10.48550/arXiv.2310.15512>.

Authors:Daniel Wilhelm [aut, cre], Pawel Morgen [aut]

csranks_1.3.0.tar.gz
csranks_1.3.0.zip(r-4.7-any)csranks_1.3.0.zip(r-4.6-any)csranks_1.3.0.zip(r-4.5-any)
csranks_1.3.0.tgz(r-4.6-any)csranks_1.3.0.tgz(r-4.5-any)
csranks_1.3.0.tar.gz(r-4.7-any)csranks_1.3.0.tar.gz(r-4.6-any)
csranks_1.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
csranks/json (API)

# Install 'csranks' in R:
install.packages('csranks', repos = c('https://danielwilhelm.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/danielwilhelm/r-cs-ranks/issues

Pkgdown/docs site:https://danielwilhelm.github.io

Datasets:
  • parent_child_income - Income of parents and children
  • pisa - Cross-country comparison of students' achievement
  • pisa2018 - Cross-country comparison of students' achievement
  • pisa2022 - Cross-country comparison of students' achievement

On CRAN:

Conda:

5.62 score 7 stars 15 scripts 478 downloads 11 exports 69 dependencies

Last updated from:e18b3f764a. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK164
source / vignettesOK249
linux-releaseOK210
macos-releaseOK244
macos-oldrelOK198
windows-develOK127
windows-releaseOK108
windows-oldrelOK131
wasm-releaseOK120

Exports:csrankscsranks_multinomcstaubestcstauworstfrankfrank_againstirankirank_againstivregrankslmranksplotranking

Dependencies:abindbackportsbootbroomcarcarDataclicolorspacecowplotcpp11DerivdoBydplyrfarverforecastFormulafracdiffgenericsggplot2gluegtableisobandivreglabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmgcvminqamodelrnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7scalesSparseMstringistringrsurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrzoo

Inference for Rank-Rank Regressions
Example: Intergenerational Mobility | Rank-rank regression | Grouped rank-rank regression | Reference & further reading

Last update: 2026-10-15
Started: 2023-09-25

Inference for Ranks
Example: PISA Ranking | Best populations | Marginal Confidence Sets | Simultaneous Confidence Sets | References & further documentation

Last update: 2026-10-15
Started: 2023-09-25

Readme and manuals

Help Manual

Help pageTopics
Confidence sets for rankscsranks
Confidence sets for ranks based on multinomial datacsranks_multinom
Confidence sets for the tau-bestcstaubest cstauworst
Compute ranksfrank irank
Compute integer ranks in another reference vectorfrank_against irank_against
Instrumental-Variable Regression by 2SLS Estimation Involving Ranksconfint.ivregranks ivregranks plot.ivregranks predict.ivregranks print.summary.ivregranks summary.ivregranks vcov.ivregranks
Regressions Involving Rankslmranks plot.lmranks predict.lmranks proj.lmranks summary.lmranks vcov.lmranks
Income of parents and childrenparent_child_income
Cross-country comparison of students' achievementpisa
Cross-country comparison of students' achievementpisa2018 pisa2022
Plot ranking with confidence setsplot.csranks plotranking