Package: sure
Type: Package
Title: Surrogate Residuals for Ordinal and General Regression Models
Description: An implementation of the surrogate approach to residuals and
  diagnostics for ordinal and general regression models; for details, see Liu
  and Zhang (2018) <doi:10.1080/01621459.2017.1292915> and Greenwell et al.
  (2018) <doi:10.32614/RJ-2018-004>. These residuals can be used to construct
  standard residual plots for model diagnostics (e.g., residual-vs-fitted
  value plots, residual-vs-covariate plots, Q-Q plots, etc.). The package also
  provides 'plot' methods for producing standard diagnostic plots using
  lightweight base R graphics (via 'tinyplot'). The package currently
  supports cumulative link models from packages 'MASS', 'ordinal', 'rms', and
  'VGAM', binary and other generalized linear models fit with 'glm', and
  multinomial models or general classifiers via a matrix of predicted class
  probabilities.
Version: 0.3.1
Authors@R: c(
  person("Brandon", "Greenwell",
         email = "greenwell.brandon@gmail.com",
         role = c("aut", "cre")),
  person("Andrew", "McCarthy",
         email = "mccarthyan@gmail.com",
         role = c("aut")),
  person("Bradley", "Boehmke",
         email = "bradleyboehmke@gmail.com",
         role = c("aut")),
  person("Liz", "Glaser",
         email = "liz.glaser@gmail.com",
         role = c("ctb"))
  )
Depends: R (>= 4.0.0)
Imports: stats
Suggests: goftest, knitr, MASS, ordinal, PResiduals, rmarkdown, rms,
        tinyplot, tinytest, VGAM
License: GPL (>= 2)
URL: https://github.com/bgreenwell/sure,
        https://bgreenwell.github.io/sure/,
        https://bgreenwell.r-universe.dev/sure
BugReports: https://github.com/bgreenwell/sure/issues
Encoding: UTF-8
RoxygenNote: 7.3.3
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2026-10-23 16:53:09 UTC; greenwbm
Author: Brandon Greenwell [aut, cre],
  Andrew McCarthy [aut],
  Bradley Boehmke [aut],
  Liz Glaser [ctb]
Maintainer: Brandon Greenwell <greenwell.brandon@gmail.com>
Repository: CRAN
Date/Publication: 2026-10-24 23:40:02 UTC
Built: R 4.7.0; ; 2026-10-24 23:56:14 UTC; windows
