{
  "_id": "6ae0c5de327abcdf868637fb",
  "Package": "sure",
  "Type": "Package",
  "Title": "Surrogate Residuals for Ordinal and General Regression Models",
  "Description": "An implementation of the surrogate approach to residuals\nand diagnostics for ordinal and general regression models; for\ndetails, see Liu and Zhang (2018)\n<doi:10.1080/01621459.2017.1292915> and Greenwell et al. (2018)\n<doi:10.32614/RJ-2018-004>. These residuals can be used to\nconstruct standard residual plots for model diagnostics (e.g.,\nresidual-vs-fitted value plots, residual-vs-covariate plots,\nQ-Q plots, etc.). The package also provides 'plot' methods for\nproducing standard diagnostic plots using lightweight base R\ngraphics (via 'tinyplot'). The package currently supports\ncumulative link models from packages 'MASS', 'ordinal', 'rms',\nand 'VGAM', binary and other generalized linear models fit with\n'glm', and multinomial models or general classifiers via a\nmatrix of predicted class probabilities.",
  "Version": "0.3.1",
  "Authors@R": "c(\nperson(\"Brandon\", \"Greenwell\",\nemail = \"greenwell.brandon@gmail.com\",\nrole = c(\"aut\", \"cre\")),\nperson(\"Andrew\", \"McCarthy\",\nemail = \"mccarthyan@gmail.com\",\nrole = c(\"aut\")),\nperson(\"Bradley\", \"Boehmke\",\nemail = \"bradleyboehmke@gmail.com\",\nrole = c(\"aut\")),\nperson(\"Liz\", \"Glaser\",\nemail = \"liz.glaser@gmail.com\",\nrole = c(\"ctb\"))\n)",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/bgreenwell/sure,\nhttps://bgreenwell.github.io/sure/,\nhttps://bgreenwell.r-universe.dev/sure",
  "BugReports": "https://github.com/bgreenwell/sure/issues",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Repository": "https://bgreenwell.r-universe.dev",
  "Date/Publication": "2026-10-27 12:04:23 UTC",
  "RemoteUrl": "https://github.com/bgreenwell/sure",
  "RemoteRef": "main",
  "RemoteSha": "008d45e2e15526dcfdbaaa4479b089ff80f18962",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-27 15:28:32 UTC",
    "User": "root"
  },
  "Author": "Brandon Greenwell [aut, cre],\nAndrew McCarthy [aut],\nBradley Boehmke [aut],\nLiz Glaser [ctb]",
  "Maintainer": "Brandon Greenwell <greenwell.brandon@gmail.com>",
  "_user": "bgreenwell",
  "_type": "src",
  "_file": "sure_0.3.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/54385ef2f55576f536d4814856bd5d2c6746b599189b2836d1bf4c686c672fcf",
  "_filesize": 1229540,
  "_sha256": "54385ef2f55576f536d4814856bd5d2c6746b599189b2836d1bf4c686c672fcf",
  "_expires": "2027-02-04T15:40:10.000Z",
  "_created": "2026-10-27T15:28:32.000Z",
  "_published": "2026-10-27T15:40:13.731Z",
  "_upstream": "https://github.com/bgreenwell/sure",
  "_status": "success",
  "_maintainer": {
    "name": "Brandon Greenwell",
    "email": "greenwell.brandon@gmail.com",
    "login": "bgreenwell",
    "linkedin": "in/brandon-greenwell-ph-d-90310b94",
    "twitter": "@bgreenwell8",
    "description": "Director, Responsible AI at 84.51° and Adjunct Instructor at the University of Cincinnati.",
    "uuid": 3777755
  },
  "_jobs": [
    {
      "job": 122284877192,
      "time": 158,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12746472535"
    },
    {
      "job": 122284877333,
      "time": 123,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12747291083"
    },
    {
      "job": 122284877747,
      "time": 102,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12747156579"
    },
    {
      "job": 122284877536,
      "time": 115,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12746787489"
    },
    {
      "job": 122280579313,
      "time": 430,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12744854970"
    },
    {
      "job": 122284877571,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12746317268"
    },
    {
      "job": 122284877620,
      "time": 78,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12747206185"
    },
    {
      "job": 122284877735,
      "time": 72,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12746232295"
    },
    {
      "job": 122284877604,
      "time": 91,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12746386601"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bgreenwell/actions/runs/40530127211",
  "_commit": {
    "id": "008d45e2e15526dcfdbaaa4479b089ff80f18962",
    "author": "Brandon Greenwell <greenwell.brandon@gmail.com>",
    "committer": "Brandon Greenwell <greenwell.brandon@gmail.com>",
    "message": "Merge devel into main: v0.3.1 release\n",
    "time": 1793102663
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "goftest",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "ordinal",
      "role": "Suggests"
    },
    {
      "package": "PResiduals",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rms",
      "role": "Suggests"
    },
    {
      "package": "tinyplot",
      "role": "Suggests"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    },
    {
      "package": "VGAM",
      "role": "Suggests"
    }
  ],
  "_owner": "bgreenwell",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2026-27",
      "n": 10
    },
    {
      "week": "2026-28",
      "n": 1
    },
    {
      "week": "2026-44",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.3.0",
      "date": "2026-07-07"
    },
    {
      "name": "v0.3.1",
      "date": "2026-10-27"
    }
  ],
  "_topics": [
    "categorical-data",
    "diagnostics",
    "ordinal-regression",
    "residuals"
  ],
  "_stars": 8,
  "_contributors": [
    {
      "user": "bgreenwell",
      "count": 108,
      "uuid": 3777755
    },
    {
      "user": "bradleyboehmke",
      "count": 13,
      "uuid": 6753598
    },
    {
      "user": "riccim94",
      "count": 3,
      "uuid": 62140760
    },
    {
      "user": "brandongreenwell-8451",
      "count": 1,
      "uuid": 103137323
    }
  ],
  "_userbio": {
    "uuid": 3777755,
    "type": "user",
    "name": "Brandon Greenwell",
    "followers": 414,
    "description": "Director, Responsible AI at 84.51° and Adjunct Instructor at the University of Cincinnati."
  },
  "_downloads": {
    "count": 567,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sure"
  },
  "_mentions": 1,
  "_devurl": "https://github.com/bgreenwell/sure",
  "_pkgdown": "https://bgreenwell.github.io/sure/",
  "_searchresults": 76,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sure.html"
  ],
  "_homeurl": "https://github.com/bgreenwell/sure",
  "_realowner": "bgreenwell",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.2",
      "date": "2017-08-20"
    },
    {
      "version": "0.2.0",
      "date": "2017-09-19"
    },
    {
      "version": "0.3.1",
      "date": "2026-10-25"
    }
  ],
  "_exports": [
    "calc_resid",
    "gof",
    "resids",
    "sim_data",
    "surrogate"
  ],
  "_help": [
    {
      "page": "calc_resid",
      "title": "Calculate surrogate residuals for multinomial/discrete choice models",
      "topics": [
        "calc_resid"
      ]
    },
    {
      "page": "gof",
      "title": "Goodness-of-Fit Simulation",
      "topics": [
        "gof",
        "gof.default",
        "plot.gof"
      ]
    },
    {
      "page": "plot.resid",
      "title": "Plot Residual Diagnostics",
      "topics": [
        "plot.clm",
        "plot.lrm",
        "plot.orm",
        "plot.polr",
        "plot.resid",
        "plot.vglm"
      ]
    },
    {
      "page": "resids",
      "title": "Surrogate residuals",
      "topics": [
        "resids",
        "resids.default",
        "resids.matrix",
        "resids.multinom"
      ]
    },
    {
      "page": "sim_data",
      "title": "Simulate Data for Diagnostic Plots",
      "topics": [
        "sim_data"
      ]
    },
    {
      "page": "surrogate",
      "title": "Surrogate response",
      "topics": [
        "surrogate"
      ]
    }
  ],
  "_readme": "https://github.com/bgreenwell/sure/raw/main/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "sure.Rmd",
      "filename": "sure.html",
      "title": "Introduction to surrogate residuals in R",
      "author": "Brad Boehmke & Brandon Greenwell",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Surrogate residuals",
        "Jittering for general models",
        "Bootstrapping",
        "Surrogate residuals in R",
        "Detecting a misspecified mean structure",
        "Obtain the SBS/probability-scale residuals",
        "Residual-vs-covariate plot and Q-Q plot",
        "Detecting heteroscedasticty",
        "Detecting a misspecified link function",
        "Checking the proportionality assumption",
        "Detecting interaction effects",
        "Bitterness of wine",
        "References"
      ],
      "created": "2018-07-01 19:57:04",
      "modified": "2026-07-07 02:46:58",
      "commits": 4
    }
  ],
  "_score": 6.914237347767742,
  "_indexed": true,
  "_nocasepkg": "sure",
  "_universes": [
    "bgreenwell"
  ],
  "_previous": "0.3.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-10-27T15:31:20.000Z",
      "distro": "resolute",
      "commit": "008d45e2e15526dcfdbaaa4479b089ff80f18962",
      "fileid": "https://r2.ropensci.org/adebc805cde2eafdc163a4a54446d0c996de4b77b251e6cc0e4e6276abdc862c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bgreenwell/actions/runs/40530127211"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-10-27T15:30:46.000Z",
      "distro": "resolute",
      "commit": "008d45e2e15526dcfdbaaa4479b089ff80f18962",
      "fileid": "https://r2.ropensci.org/0259e32f851118e696ef3bf9f74d43c882d39ac13d16ca09607df8326a3e6d4d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bgreenwell/actions/runs/40530127211"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-10-27T15:36:03.000Z",
      "commit": "008d45e2e15526dcfdbaaa4479b089ff80f18962",
      "fileid": "https://r2.ropensci.org/b206bc19cd6427a6afc26353a1ed373d0cf4f36711f6523651541b2231ff698c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bgreenwell/actions/runs/40530127211"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-10-27T15:39:29.000Z",
      "commit": "008d45e2e15526dcfdbaaa4479b089ff80f18962",
      "fileid": "https://r2.ropensci.org/fdfd008581e60b012ebbaa006db515aaeebf66dcd46a247268aaff1418fa9b6c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bgreenwell/actions/runs/40530127211"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1",
      "date": "2026-10-27T15:30:48.000Z",
      "commit": "008d45e2e15526dcfdbaaa4479b089ff80f18962",
      "fileid": "https://r2.ropensci.org/f247825efe0dab2ee604a7d80d03ed41a69d4deed2e194e6467ca8b7c09addd8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bgreenwell/actions/runs/40530127211"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-10-27T15:29:55.000Z",
      "commit": "008d45e2e15526dcfdbaaa4479b089ff80f18962",
      "fileid": "https://r2.ropensci.org/8f52ae9fa2c3adfdb18f8bd1ba23aafb97094ab573191a8fd36abde6461bb661",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bgreenwell/actions/runs/40530127211"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-10-27T15:29:48.000Z",
      "commit": "008d45e2e15526dcfdbaaa4479b089ff80f18962",
      "fileid": "https://r2.ropensci.org/f5c67893bc6fca63bc170eeb5a6fc04cf155ed24e9de5b7f55b820558dfbe18a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bgreenwell/actions/runs/40530127211"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-10-27T15:30:08.000Z",
      "commit": "008d45e2e15526dcfdbaaa4479b089ff80f18962",
      "fileid": "https://r2.ropensci.org/450a01a6747962bdb588b62703a6f9238a844cc3d5b241a8bcc759f5d4594d68",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bgreenwell/actions/runs/40530127211"
    }
  ]
}