Skip to content
CRAN requires the check problems on this package to be fixed before 2026-08-31 or it will be archived.

sure

0.2.0

Surrogate Residuals for Ordinal and General Regression Models

1packages depend
9.2Kdownloads / year
55.6%test coverage
0/13checks pass

Overview

About
Maintained by Brandon GreenwellFirst published 2017-08-212 releasesCRAN page ↗GitHub ↗

An implementation of the surrogate approach to residuals and diagnostics for ordinal and general regression models; for details, see Liu and Zhang (2017) doi:10.1080/01621459.2017.1292915. 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 an 'autoplot' function for producing standard diagnostic plots using 'ggplot2' graphics. The package currently supports cumulative link models from packages 'MASS', 'ordinal', 'rms', and 'VGAM'. Support for binary regression models using the standard 'glm' function is also available.

Install

Health

CRAN checks
13NOTE
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
  • NOTE r-oldrel-macos-arm64
  • NOTE r-oldrel-macos-x86_64
  • NOTE r-oldrel-windows-x86_64
  • NOTE r-patched-linux-x86_64
  • NOTE r-release-linux-x86_64
  • NOTE r-release-macos-arm64
  • NOTE r-release-macos-x86_64
  • NOTE r-release-windows-x86_64
Slowest check: 1.7 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.39
55.6%
Coverage · measured lines
100%
Documentation · exports
4
Dependencies · direct
Check history
  • NOTE2026-03-10
    0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 74 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
80%
Return-value docs
80%
References docs
58%

Downloads

9.2K
CRAN downloads in the past year
Rank #4,762 · ~25/day · ~769/mo
Daily download trend is not available in this view yet.
35730 days
1.8K90 days
9.2K1 year
Compare downloads with other packages →
Also on103 r2u1 autocran

Repository

Repository
8Stars
4Forks
0Open issues
0Open PRs
1Releases
158Commits
5Contributors
residualsdiagnosticscategorical-dataordinal-regression
158 commits · Last activity 2026-07-07

Stars over time

2021-08-10 · 82026-07-07 · 8

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/afit-r/sure on 2026-07-31.

Continuous integration (1)
GitHub Actions
Coverage (1)
Codecov
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.1
Imports (4)
LinkingTo (0)
none
Suggests (5)
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Datasets

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Contributors (1)
Contributor
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.0Latest
    2017-09-19 · current release · diff ↗
  • 0.1.2
    2017-08-21
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-08-21
Total releases
2 / 9 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.1
Bundled data
62 KB / 5 files
Download size
176 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy