
An R package for constructingSUrrogate-basedREsiduals and diagnostics for ordinal and generalregression models; based on the approach described inDungangand Zhang (2017).
Thesure package iscurrently listed onCRAN and can easily be installed:
# Install from CRAN (recommended)install.packages("sure")# Alternatively, install the development version from GitHubif (!requireNamespace("devtools"))install.packages("devtools")devtools::install_github("AFIT-R/sure")Liu, Dungang and Zhang, Heping. Residuals and Diagnostics for OrdinalRegression Models: A Surrogate Approach.Journal of the AmericanStatistical Association (accepted). URLhttp://www.tandfonline.com/doi/abs/10.1080/01621459.2017.1292915?journalCode=uasa20