Learn R Programming

R2D2ordinal (version 1.0.1)

Implements Pseudo-R2D2 Prior for Ordinal Regression

Description

Implements the pseudo-R2D2 prior for ordinal regression from the paper "Psuedo-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

196

Version

1.0.1

License

MIT + file LICENSE

Maintainer

Eric Yanchenko

Last Published

March 18th, 2025

Functions in R2D2ordinal (1.0.1)

dcut

PDF of cut-points
r2_mc

Posterior distribution of McFadden's R2
R2D2ordinal-package

The 'R2D2ordinal' package.
llike

Log-Likelihood for ordinal regression
find_param

Find optimal GIG parameters for W prior
ord_r2d2

Ordinal regression in Stan with R2D2 prior