sure: Surrogate Residuals

Build Status AppVeyor Build Status codecov


An R package for constructing SUrrogate-based REsiduals and diagnostics for ordinal and general regression models; based on the approach described in Dungang and Zhang (2017).


The sure package is currently listed on CRAN and can easily be installed:

# Install from CRAN (recommended)

# Alternatively, install the development version from GitHub
if (!requireNamespace("devtools")) install.packages("devtools")


Liu, D. and Zhang, H. Residuals and Diagnostics for Ordinal Regression Models: A Surrogate Approach. Journal of the American Statistical Association (accepted). URL

Greenwell, B.M., McCarthy, A.J., Boehmke, B.C. & Dungang, L. (2018) "Residuals and diagnostics for binary and ordinal regression models: An introduction to the sure package." The R Journal (pre-print). URL

AFIT-R/sure documentation built on June 20, 2018, 7:49 a.m.