The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Surrogate residuals and diagnostics for ordinal and general regression models, based on the approach of Liu and Zhang (2018).
glm() fits.# From CRAN (recommended)
install.packages("sure")
# Latest development version, from r-universe
install.packages("sure", repos = c("https://bgreenwell.r-universe.dev", "https://cloud.r-project.org"))library(sure)
# Simulate an ordinal response with a quadratic true relationship
set.seed(101)
df <- sim_data(n = 500, type = "quadratic")
# Fit a (misspecified) proportional odds model
fit <- MASS::polr(y ~ x, data = df)
# Compute surrogate-based residuals and plot the diagnostics
res <- resids(fit)
plot(res, what = "covariate", covariate = df$x, xlab = "x")vignette("sure", package = "sure")devel is the default branch and holds ongoing
development; main holds stable releases only. Please open
pull requests against devel and report bugs at https://github.com/bgreenwell/sure/issues.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.