Implements Pseudo-R2D2 Prior for Ordinal Regression

Implements the pseudo-R2D2 prior for ordinal regression from the paper "Pseudo-R2D2 prior for high-dimensional ordinal regression" by Yanchenko (2025) . In particular, it provides code to evaluate the probability distribution function for the cut-points, compute the log-likelihood, calculate the hyper-parameters for the global variance parameter, find the distribution of McFadden's coefficient-of-determination, and fit the model in 'rstan'. Please cite the paper if you use these codes.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("R2D2ordinal")

1.0.2 by Eric Yanchenko, 10 months ago


Browse source code at https://github.com/cran/R2D2ordinal


Authors: Eric Yanchenko [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports extraDistr, GIGrvg, LaplacesDemon, methods, Rcpp, RcppParallel, rstan, rstantools

Suggests knitr, rmarkdown, ggplot2, dplyr

Linking to BH, Rcpp, RcppEigen, RcppParallel, rstan, StanHeaders

System requirements: GNU make


See at CRAN