Learn R Programming

R2D2ordinal (version 1.0.2)

Implements Pseudo-R2D2 Prior for Ordinal Regression

Description

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.

Copy Link

Version

Install

install.packages('R2D2ordinal')

Monthly Downloads

175

Version

1.0.2

License

MIT + file LICENSE

Maintainer

Eric Yanchenko

Last Published

December 17th, 2025

Functions in R2D2ordinal (1.0.2)

R2D2ordinal-package

The 'R2D2ordinal' package.
dcut

PDF of cut-points
llike

Log-Likelihood for ordinal regression
find_param

Find optimal GIG parameters for W prior
r2_mc

Posterior distribution of McFadden's R2
ord_r2d2

Ordinal regression in Stan with R2D2 prior