{
  "_id": "6b131efbee7507cf073a2a37",
  "Package": "softcats",
  "Type": "Package",
  "Title": "Regression on Predicted Categories with Calibrated Probabilities",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"Marcell T.\", \"Kurbucz\", email = \"m.kurbucz@ucl.ac.uk\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-0121-6781\")),\nperson(\"Economic and Social Research Council\", role = \"fnd\",\ncomment = \"Grant UKRI5718\")\n)",
  "Description": "Estimates the association between an outcome and a latent\ncategorical group from calibrated class probabilities instead\nof predicted labels. Assigning each observation its most likely\ncategory or thresholding the probabilities distorts regression\nestimates (for a binary group it typically attenuates them) and\ncan give confidence intervals whose coverage is far below the\nnominal level. The estimator partials the controls out of the\noutcome and the probabilities with cross-fitted machine\nlearning nuisance functions and solves a Neyman-orthogonal\nmoment equation, with heteroskedasticity- or cluster-robust\nstandard errors and optional weights. Further functions report\nhow much information the probabilities carry beyond the\ncontrols, test conditional calibration and direct effects of\nclassifier features on labelled data, recalibrate the\nprobabilities on such data, bound the bias from calibration\nerror, and compare the estimate with hard-label regressions,\nincluding the distortion and the implied coverage of the\ncross-fitted hard-label estimate. Methods follow Kurbucz (2026)\n<doi:10.48550/arXiv.2608.11784> for several categories and\ncoarsening, Kurbucz (2026) <doi:10.48550/arXiv.2605.12780> for\nconfidence thresholding, and the cross-fitting of Chernozhukov\net al. (2018) <doi:10.1111/ectj.12097>.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/mtkurbucz/softcats,\nhttps://mtkurbucz.github.io/softcats/",
  "BugReports": "https://github.com/mtkurbucz/softcats/issues",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "RoxygenNote": "7.3.2",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-12-04 20:09:26 UTC",
    "User": "root"
  },
  "Author": "Marcell T. Kurbucz [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-0121-6781>), Economic and Social\nResearch Council [fnd] (Grant UKRI5718)",
  "Maintainer": "Marcell T. Kurbucz <m.kurbucz@ucl.ac.uk>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-12-04 19:21:48 UTC",
  "RemoteUrl": "https://github.com/cran/softcats",
  "RemoteRef": "HEAD",
  "RemoteSha": "80b8befe065ed094e4244057bcf7ba6870e00814",
  "_user": "cran",
  "_type": "src",
  "_file": "softcats_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/51c94148066dda41a1d35c11fb89dd6cdeb1ba393fd2f97d39af214925035e72",
  "_filesize": 474808,
  "_sha256": "51c94148066dda41a1d35c11fb89dd6cdeb1ba393fd2f97d39af214925035e72",
  "_expires": "2027-03-14T20:13:45.000Z",
  "_created": "2026-12-04T20:09:26.000Z",
  "_published": "2026-12-04T20:13:47.232Z",
  "_upstream": "https://github.com/cran/softcats",
  "_status": "success",
  "_maintainer": {
    "name": "Marcell T. Kurbucz",
    "email": "m.kurbucz@ucl.ac.uk",
    "login": "mtkurbucz-ucl",
    "description": "",
    "uuid": 206442185,
    "orcid": "0000-0002-0121-6781"
  },
  "_jobs": [
    {
      "job": 145330903570,
      "time": 215,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15883138602"
    },
    {
      "job": 145330903558,
      "time": 162,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15883607850"
    },
    {
      "job": 145328359385,
      "time": 250,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15885045343"
    },
    {
      "job": 145330903534,
      "time": 97,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15884276622"
    },
    {
      "job": 145330903962,
      "time": 93,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15884825770"
    },
    {
      "job": 145330903471,
      "time": 122,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15885261428"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/47414977726",
  "_commit": {
    "id": "80b8befe065ed094e4244057bcf7ba6870e00814",
    "author": "Marcell T. Kurbucz <m.kurbucz@ucl.ac.uk>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1796412108
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "generics",
      "version": ">= 0.1.0",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "ranger",
      "version": ">= 0.12.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "broom",
      "role": "Suggests"
    },
    {
      "package": "glmnet",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lmtest",
      "role": "Suggests"
    },
    {
      "package": "modelsummary",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "splines",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-49",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.0",
      "date": "2026-12-04"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "mtkurbucz-ucl",
      "count": 1,
      "uuid": 206442185
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 636,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/softcats"
  },
  "_devurl": "https://github.com/mtkurbucz/softcats",
  "_pkgdown": "https://mtkurbucz.github.io/softcats/",
  "_searchresults": 4,
  "_rbuild": "4.6.2",
  "_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/softcats.html"
  ],
  "_cranurl": false,
  "_authors": [
    {
      "name": "Marcell T. Kurbucz",
      "email": "m.kurbucz@ucl.ac.uk",
      "orcid": "0000-0002-0121-6781",
      "role": [
        "aut",
        "cre",
        "cph"
      ]
    },
    {
      "name": "Economic and Social Research Council",
      "role": [
        "fnd"
      ]
    }
  ],
  "_exports": [
    "calibration_check",
    "compare_hard",
    "drift_sensitivity",
    "exclusion_test",
    "glance",
    "kappa_curve",
    "lrn_custom",
    "lrn_glmnet",
    "lrn_lm",
    "lrn_ranger",
    "recalibrate",
    "score_spectrum",
    "sim_softcats",
    "soft_check",
    "soft_lm",
    "tidy"
  ],
  "_help": [
    {
      "page": "calibration_check",
      "title": "Check Conditional Calibration on Labelled Data",
      "topics": [
        "calibration_check",
        "plot.softcats_calibration",
        "print.softcats_calibration"
      ]
    },
    {
      "page": "compare_hard",
      "title": "Compare with Regressions on Predicted Labels",
      "topics": [
        "compare_hard",
        "print.softcats_hard"
      ]
    },
    {
      "page": "drift_sensitivity",
      "title": "Sensitivity of the Estimate to Calibration Error",
      "topics": [
        "drift_sensitivity",
        "print.softcats_sensitivity"
      ]
    },
    {
      "page": "exclusion_test",
      "title": "Test Whether Classifier Features Affect the Outcome Directly",
      "topics": [
        "exclusion_test",
        "print.softcats_exclusion"
      ]
    },
    {
      "page": "kappa_curve",
      "title": "Attenuation of Hard Labels Across Confidence Thresholds",
      "topics": [
        "kappa_curve",
        "plot.softcats_kappa",
        "print.softcats_kappa"
      ]
    },
    {
      "page": "learners",
      "title": "Nuisance Learners",
      "topics": [
        "learners",
        "lrn_custom",
        "lrn_glmnet",
        "lrn_lm",
        "lrn_ranger",
        "print.softcats_learner"
      ]
    },
    {
      "page": "recalibrate",
      "title": "Recalibrate the Class Probabilities on Labelled Data",
      "topics": [
        "predict.softcats_recalibration",
        "print.softcats_recalibration",
        "recalibrate"
      ]
    },
    {
      "page": "score_spectrum",
      "title": "Information in the Scores Beyond the Controls",
      "topics": [
        "print.softcats_spectrum",
        "score_spectrum"
      ]
    },
    {
      "page": "sim_softcats",
      "title": "Simulate Data with Calibrated Class Probabilities",
      "topics": [
        "sim_softcats"
      ]
    },
    {
      "page": "soft_check",
      "title": "Diagnostic Report for a softcats Fit",
      "topics": [
        "print.softcats_check",
        "soft_check"
      ]
    },
    {
      "page": "soft_lm",
      "title": "Regression on Predicted Categories with Calibrated Class Probabilities",
      "topics": [
        "soft_lm"
      ]
    },
    {
      "page": "softcats-methods",
      "title": "Methods for softcats Fits",
      "topics": [
        "coef.softcats",
        "confint.softcats",
        "fitted.softcats",
        "formula.softcats",
        "glance.softcats",
        "nobs.softcats",
        "plot.softcats",
        "print.softcats",
        "print.summary.softcats",
        "residuals.softcats",
        "softcats-methods",
        "summary.softcats",
        "tidy.softcats",
        "vcov.softcats"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/softcats/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/softcats/raw/HEAD/README.md",
  "_rundeps": [
    "generics",
    "lattice",
    "Matrix",
    "ranger",
    "Rcpp",
    "RcppEigen"
  ],
  "_vignettes": [
    {
      "source": "softcats.Rmd",
      "filename": "softcats.html",
      "title": "Regression on Predicted Categories with softcats",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The problem",
        "A first example",
        "What the method assumes",
        "Choosing a learner",
        "Diagnostics",
        "Information beyond the controls",
        "Checks on the labelled sample",
        "How much calibration error the conclusion tolerates",
        "All checks at once",
        "Recalibration",
        "Two groups and confidence thresholds",
        "Weights and clusters",
        "Working with other packages",
        "References"
      ],
      "created": "2026-12-04 19:21:48",
      "modified": "2026-12-04 19:21:48",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "softcats",
  "_universes": [
    "cran",
    "mtkurbucz-ucl",
    "mtkurbucz"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-12-04T20:12:30.000Z",
      "distro": "resolute",
      "commit": "80b8befe065ed094e4244057bcf7ba6870e00814",
      "fileid": "https://r2.ropensci.org/d7fd9be3852b8958f57d9e9cddeb5923d46be4188c291d5dd3e71b3c6931f87e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/47414977726"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-12-04T20:11:39.000Z",
      "distro": "resolute",
      "commit": "80b8befe065ed094e4244057bcf7ba6870e00814",
      "fileid": "https://r2.ropensci.org/6d5fa5c2c126671265c338b5f3bf5424adb53541462fbd3942e68f7be9c0fd0a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/47414977726"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-12-04T20:11:27.000Z",
      "commit": "80b8befe065ed094e4244057bcf7ba6870e00814",
      "fileid": "https://r2.ropensci.org/f87bcf29411acbe30857b5dfd2ddf3a8bf9e791dfbcf68f307d544ea18c70891",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/47414977726"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-12-04T20:10:44.000Z",
      "commit": "80b8befe065ed094e4244057bcf7ba6870e00814",
      "fileid": "https://r2.ropensci.org/5b1d85b21eaf06bf176583f6644c603a7bcca94406c582fcbaf5f824f0a10415",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/47414977726"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-12-04T20:10:51.000Z",
      "commit": "80b8befe065ed094e4244057bcf7ba6870e00814",
      "fileid": "https://r2.ropensci.org/d831aded79e5feab65fbb3e76b69ecea22bb7c437dd3e0a8de3274d41d515b8a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/47414977726"
    }
  ]
}