{
  "_id": "6a10401cacfb0bcc41c9d032",
  "Package": "optimalThreshold",
  "Type": "Package",
  "Title": "Bayesian Methods for Optimal Threshold Estimation",
  "Version": "1.0",
  "SystemRequirements": "JAGS 4.x.y",
  "Date": "2020-01-09",
  "Authors@R": "person(\"Yoann\", \"Blangero\", email = \"yblangero@gmail.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Functions to estimate the optimal threshold of diagnostic\nmarkers or treatment selection markers. The optimal threshold\nis the marker value that maximizes the utility of the marker\nbased-strategy (for diagnostic or treatment selection) in a\ngiven population. The utility function depends on the type of\nmarker (diagnostic or treatment selection), but always takes\ninto account the preferences of the patients or the physician\nin the decision process. For estimating the optimal threshold,\nones must specify the distributions of the marker in different\ngroups (defined according to the type of marker, diagnostic or\ntreatment selection) and provides data to estimate the\nparameters of these distributions. Ones must also provide some\nfeatures of the target populations (disease prevalence or\ntreatment efficacies) as well as the preferences of patients or\nphysicians. The functions rely on Bayesian inference which\nhelps producing several indicators derived from the optimal\nthreshold. See Blangero, Y, Rabilloud, M, Ecochard, R, and\nSubtil, F (2019) <doi:10.1177/0962280218821394> for the\noriginal article that describes the estimation method for\ntreatment selection markers and Subtil, F, and Rabilloud, M\n(2019) <doi:10.1002/bimj.200900242> for diagnostic markers.",
  "License": "GPL (>= 2.0)",
  "Collate": "Package.R import_package.R scaledT.R ClassUnions.R\nClassFitNormalDist.R ClassFitLogNormalDist.R\nClassFitGammaDist.R ClassFitStudentDist.R\nClassFitLogisticDist.R ClassFitUserDefinedDist.R\nClassUndefined.R ClassNormalDist.R ClassLogNormalDist.R\nClassGammaDist.R ClassStudentDist.R ClassLogisticDist.R\nClassUnionsDist.R ClassCompoundDist.R ClassTrtSelOptThresh.R\nClassTrtSelRelUtility.R ClassDiagOptThresh.R\nClassDiagRelUtility.R cdf.R gradient.R hessian.R ARS.R\nsamplePosteriorDist.R global.R",
  "RoxygenNote": "6.1.1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-11 08:25:02 UTC",
    "User": "root"
  },
  "Author": "Yoann Blangero [aut, cre]",
  "Maintainer": "Yoann Blangero <yblangero@gmail.com>",
  "Config/pak/sysreqs": "jags",
  "Repository": "https://yblan.r-universe.dev",
  "Date/Publication": "2020-01-13 15:10:05 UTC",
  "RemoteUrl": "https://github.com/cran/optimalThreshold",
  "RemoteRef": "HEAD",
  "RemoteSha": "66de5c78d76bb344ea4846c90fe1532216e71e75",
  "MD5sum": "587ddc0aff6b8a0c92fa136721b533c9",
  "_user": "yblan",
  "_type": "src",
  "_file": "optimalThreshold_1.0.tar.gz",
  "_fileid": "82f75523710df404bc3c6317025aa338ed69bd5dd1957cf826cc1ab007d69f7f",
  "_filesize": 332623,
  "_sha256": "82f75523710df404bc3c6317025aa338ed69bd5dd1957cf826cc1ab007d69f7f",
  "_created": "2026-05-11T08:25:02.000Z",
  "_published": "2026-05-22T11:38:04.362Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77371958376,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6913713112"
    },
    {
      "job": 77371958000,
      "time": 125,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6913697720"
    },
    {
      "job": 77371958152,
      "time": 164,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6913700227"
    },
    {
      "job": 77371958338,
      "time": 185,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6913705976"
    },
    {
      "job": 77371957639,
      "time": 163,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6913653845"
    },
    {
      "job": 77371957655,
      "time": 89,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159567389"
    },
    {
      "job": 77371958321,
      "time": 111,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6913692871"
    },
    {
      "job": 77371958230,
      "time": 91,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6913686093"
    },
    {
      "job": 77371958375,
      "time": 94,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6913686911"
    }
  ],
  "_buildurl": "https://github.com/r-universe/yblan/actions/runs/25658785582",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/optimalThreshold",
  "_commit": {
    "id": "66de5c78d76bb344ea4846c90fe1532216e71e75",
    "author": "Yoann Blangero <yblangero@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0\n",
    "time": 1578928205
  },
  "_maintainer": {
    "name": "Yoann Blangero",
    "email": "yblangero@gmail.com",
    "login": "yblan",
    "uuid": 52752856
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.1.2",
      "role": "Depends"
    },
    {
      "package": "ars",
      "role": "Imports"
    },
    {
      "package": "rjags",
      "role": "Imports"
    },
    {
      "package": "HDInterval",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "coda",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "yblan",
      "count": 1,
      "uuid": 52752856
    }
  ],
  "_userbio": {
    "uuid": 52752856,
    "type": "user",
    "name": "yblan"
  },
  "_downloads": {
    "count": 210,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/optimalThreshold"
  },
  "_searchresults": 0,
  "_topics": [
    "jags",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/optimalThreshold.html",
    "manual.pdf"
  ],
  "_realowner": "yblan",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0",
      "date": "2020-01-13"
    }
  ],
  "_exports": [
    "cdf",
    "credibleIntervals",
    "decisionCurve",
    "densCurves",
    "diagThresh",
    "estimates",
    "fit",
    "gradient",
    "hessian",
    "plot",
    "riskCurves",
    "samplePosteriorDist",
    "show",
    "summary",
    "trtSelThresh"
  ],
  "_help": [
    {
      "page": "allowedDist-class",
      "title": "An S4 union class to represent allowed dist object.",
      "topics": [
        "allowedDist",
        "allowedDist-class"
      ]
    },
    {
      "page": "allowedFitDist-class",
      "title": "An S4 union class to represent allowed fitDist objects.",
      "topics": [
        "allowedFitDist",
        "allowedFitDist-class"
      ]
    },
    {
      "page": "cdf",
      "title": "Cumulative distribution function of a specified distribution",
      "topics": [
        "cdf",
        "cdf,compoundEvtInnovDist-method",
        "cdf,compoundEvtRefDist-method",
        "cdf,compoundNoEvtInnovDist-method",
        "cdf,compoundNoEvtRefDist-method",
        "cdf,gammaDist-method",
        "cdf,logisticDist-method",
        "cdf,logNormalDist-method",
        "cdf,normalDist-method",
        "cdf,studentDist-method",
        "cdf.compoundEvtInnovDist",
        "cdf.compoundEvtRefDist",
        "cdf.compoundNoEvtInnovDist",
        "cdf.compoundNoEvtRefDist",
        "cdf.gammaDist",
        "cdf.logisticDist",
        "cdf.logNormalDist",
        "cdf.normalDist",
        "cdf.studentDist"
      ]
    },
    {
      "page": "compoundEvtInnovDist-class",
      "title": "An S4 class to represent a compound distribution.",
      "topics": [
        "compoundEvtInnovDist",
        "compoundEvtInnovDist-class"
      ]
    },
    {
      "page": "compoundEvtRefDist-class",
      "title": "An S4 class to represent a compound distribution.",
      "topics": [
        "compoundEvtRefDist",
        "compoundEvtRefDist-class"
      ]
    },
    {
      "page": "compoundNoEvtInnovDist-class",
      "title": "An S4 class to represent a compound distribution.",
      "topics": [
        "compoundNoEvtInnovDist",
        "compoundNoEvtInnovDist-class"
      ]
    },
    {
      "page": "compoundNoEvtRefDist-class",
      "title": "An S4 class to represent a compound distribution.",
      "topics": [
        "compoundNoEvtRefDist",
        "compoundNoEvtRefDist-class"
      ]
    },
    {
      "page": "credibleIntervals",
      "title": "Credible intervals estimation",
      "topics": [
        "credibleIntervals",
        "credibleIntervals,diagOptThresh-method",
        "credibleIntervals,trtSelOptThresh-method",
        "credibleIntervals.diagOptThresh",
        "credibleIntervals.trtSelOptThresh"
      ]
    },
    {
      "page": "decisionCurve",
      "title": "Decision curve plot",
      "topics": [
        "decisionCurve",
        "decisionCurve,diagOptThresh-method",
        "decisionCurve,trtSelOptThresh-method",
        "decisionCurve.diagOptThresh",
        "decisionCurve.trtSelOptThresh"
      ]
    },
    {
      "page": "densCurves",
      "title": "Density curves plot",
      "topics": [
        "densCurves"
      ]
    },
    {
      "page": "diagOptThresh-class",
      "title": "An S4 class to describe the optimal threshold of a diagnostic marker.",
      "topics": [
        "diagOptThresh",
        "diagOptThresh-class"
      ]
    },
    {
      "page": "diagRelUtility-class",
      "title": "An S4 class to sum up the results from the decisionCurve methods.",
      "topics": [
        "diagRelUtility",
        "diagRelUtility-class"
      ]
    },
    {
      "page": "diagThresh",
      "title": "Estimation of the optimal threshold of a diagnostic marker",
      "topics": [
        "diagThresh"
      ]
    },
    {
      "page": "estimates",
      "title": "Indicator estimates",
      "topics": [
        "estimates",
        "estimates,diagOptThresh-method",
        "estimates,trtSelOptThresh-method",
        "estimates.diagOptThresh",
        "estimates.trtSelOptThresh"
      ]
    },
    {
      "page": "fit",
      "title": "Specify which distribution to fit on the marker values",
      "topics": [
        "fit"
      ]
    },
    {
      "page": "fitGammaDist-class",
      "title": "An S4 class to fit a gamma distribution on a vector of marker values.",
      "topics": [
        "fitGammaDist",
        "fitGammaDist-class"
      ]
    },
    {
      "page": "fitLogisticDist-class",
      "title": "An S4 class to fit a logistic distribution on a vector of marker values.",
      "topics": [
        "fitLogisticDist",
        "fitLogisticDist-class"
      ]
    },
    {
      "page": "fitLogNormalDist-class",
      "title": "An S4 class to fit a log-normal distribution on a vector of marker values.",
      "topics": [
        "fitLogNormalDist",
        "fitLogNormalDist-class"
      ]
    },
    {
      "page": "fitNormalDist-class",
      "title": "An S4 class to fit a normal distribution on a vector of marker values.",
      "topics": [
        "fitNormalDist",
        "fitNormalDist-class"
      ]
    },
    {
      "page": "fitStudentDist-class",
      "title": "An S4 class to fit a Student distribution on a vector of marker values.",
      "topics": [
        "fitStudentDist",
        "fitStudentDist-class"
      ]
    },
    {
      "page": "fitUserDefinedDist-class",
      "title": "An S4 class to fit a user-defined distribution on a vector of marker values.",
      "topics": [
        "fitUserDefinedDist",
        "fitUserDefinedDist-class"
      ]
    },
    {
      "page": "gammaDist-class",
      "title": "An S4 class to represent a gamma distribution.",
      "topics": [
        "gammaDist",
        "gammaDist-class"
      ]
    },
    {
      "page": "gradient",
      "title": "Probability density function of a specified distribution",
      "topics": [
        "gradient",
        "gradient,compoundEvtInnovDist-method",
        "gradient,compoundEvtRefDist-method",
        "gradient,compoundNoEvtInnovDist-method",
        "gradient,compoundNoEvtRefDist-method",
        "gradient,gammaDist-method",
        "gradient,logisticDist-method",
        "gradient,logNormalDist-method",
        "gradient,normalDist-method",
        "gradient,studentDist-method",
        "gradient.compoundEvtInnovDist",
        "gradient.compoundEvtRefDist",
        "gradient.compoundNoEvtInnovDist",
        "gradient.compoundNoEvtRefDist",
        "gradient.gammaDist",
        "gradient.logisticDist",
        "gradient.logNormalDist",
        "gradient.normalDist",
        "gradient.studentDist"
      ]
    },
    {
      "page": "hessian",
      "title": "Second derivative of the cumulative distribution function of a specified distribution",
      "topics": [
        "hessian",
        "hessian,compoundEvtInnovDist-method",
        "hessian,compoundEvtRefDist-method",
        "hessian,compoundNoEvtInnovDist-method",
        "hessian,compoundNoEvtRefDist-method",
        "hessian,gammaDist-method",
        "hessian,logisticDist-method",
        "hessian,logNormalDist-method",
        "hessian,normalDist-method",
        "hessian,studentDist-method",
        "hessian.compoundEvtInnovDist",
        "hessian.compoundEvtRefDist",
        "hessian.compoundNoEvtInnovDist",
        "hessian.compoundNoEvtRefDist",
        "hessian.gammaDist",
        "hessian.logisticDist",
        "hessian.logNormalDist",
        "hessian.normalDist",
        "hessian.studentDist"
      ]
    },
    {
      "page": "logisticDist-class",
      "title": "An S4 class to represent a logistic distribution.",
      "topics": [
        "logisticDist",
        "logisticDist-class"
      ]
    },
    {
      "page": "logNormalDist-class",
      "title": "An S4 class to represent a log-normal distribution.",
      "topics": [
        "logNormalDist",
        "logNormalDist-class"
      ]
    },
    {
      "page": "mcmc.listOrNull-class",
      "title": "An S4 union class to merge mcmc.list and NULL types of object.",
      "topics": [
        "mcmc.listOrNull",
        "mcmc.listOrNull-class"
      ]
    },
    {
      "page": "normalDist-class",
      "title": "An S4 class to represent a normal distribution.",
      "topics": [
        "normalDist",
        "normalDist-class"
      ]
    },
    {
      "page": "plot-methods",
      "title": "Plot method",
      "topics": [
        "plot,diagOptThresh-method",
        "plot,trtSelOptThresh-method",
        "plot-methods",
        "plot.diagOptThresh",
        "plot.trtSelOptThresh"
      ]
    },
    {
      "page": "plot.diagRelUtility",
      "title": "Plot the decision curves of a diagnostic marker",
      "topics": [
        "plot,diagRelUtility-method",
        "plot.diagRelUtility"
      ]
    },
    {
      "page": "plot.trtSelRelUtility",
      "title": "Plot the decision curves of a treatment selection marker",
      "topics": [
        "plot,trtSelRelUtility-method",
        "plot.trtSelRelUtility"
      ]
    },
    {
      "page": "riskCurves",
      "title": "Marker-by-treatment predictiveness curves plot",
      "topics": [
        "riskCurves"
      ]
    },
    {
      "page": "samplePosteriorDist",
      "title": "Sample in the posterior distribution of the parameters of a given theoretical distribution.",
      "topics": [
        "samplePosteriorDist",
        "samplePosteriorDist,fitGammaDist-method",
        "samplePosteriorDist,fitLogisticDist-method",
        "samplePosteriorDist,fitLogNormalDist-method",
        "samplePosteriorDist,fitNormalDist-method",
        "samplePosteriorDist,fitStudentDist-method",
        "samplePosteriorDist.fitGammaDist",
        "samplePosteriorDist.fitLogisticDist",
        "samplePosteriorDist.fitLogNormalDist",
        "samplePosteriorDist.fitNormalDist",
        "samplePosteriorDist.fitStudentDist"
      ]
    },
    {
      "page": "show-methods",
      "title": "Show method",
      "topics": [
        "show,diagOptThresh-method",
        "show,trtSelOptThresh-method",
        "show-methods",
        "show.diagOptThresh",
        "show.trtSelOptThresh"
      ]
    },
    {
      "page": "studentDist-class",
      "title": "An S4 class to represent a scaled Student distribution.",
      "topics": [
        "studentDist",
        "studentDist-class"
      ]
    },
    {
      "page": "summary-methods",
      "title": "An S4 method that summarizes the results of a 'trtSelOpthThresh' or a 'diagOpthThresh' object.",
      "topics": [
        "summary,diagOptThresh-method",
        "summary,trtSelOptThresh-method",
        "summary-methods",
        "summary.diagOptThresh",
        "summary.trtSelOptThresh"
      ]
    },
    {
      "page": "trtSelOptThresh-class",
      "title": "An S4 class to describe the optimal threshold of a treatment selection marker.",
      "topics": [
        "trtSelOptThresh",
        "trtSelOptThresh-class"
      ]
    },
    {
      "page": "trtSelRelUtility-class",
      "title": "An S4 class to the results from the decisionCurve methods.",
      "topics": [
        "trtSelRelUtility",
        "trtSelRelUtility-class"
      ]
    },
    {
      "page": "trtSelThresh",
      "title": "Estimation of the optimal threshold of a treatment selection marker",
      "topics": [
        "trtSelThresh"
      ]
    },
    {
      "page": "undefined-class",
      "title": "An S4 class to represent an 'undefined' distribution.",
      "topics": [
        "undefined",
        "undefined-class"
      ]
    }
  ],
  "_rundeps": [
    "ars",
    "coda",
    "HDInterval",
    "lattice",
    "Matrix",
    "mgcv",
    "nlme",
    "rjags"
  ],
  "_sysdeps": [
    {
      "shlib": "libjags",
      "package": "jags",
      "headers": "jags",
      "source": "jags",
      "version": "4.3.2-2.2404.0",
      "name": "jags",
      "homepage": "https://mcmc-jags.sourceforge.io",
      "description": "Just Another Gibbs Sampler for Bayesian MCMC - binary\nJAGS is Just Another Gibbs Sampler.  It is a program for analysis of\nBayesian hierarchical models using Markov Chain Monte Carlo (MCMC)\nsimulation not wholly unlike BUGS.\n\nJAGS was written with three aims in mind:\n* To have an engine for the BUGS language that runs on Unix\n* To be extensible, allowing users to write their own functions,\ndistributions and samplers.\n* To be a plaftorm for experimentation with ideas in Bayesian modelling\n\nThis package contains the 'jags' binary as well as the associated\nshared library modules loaded by the binary."
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 1,
  "_indexed": true,
  "_nocasepkg": "optimalthreshold",
  "_universes": [
    "yblan"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-05-11T08:27:46.000Z",
      "distro": "noble",
      "commit": "66de5c78d76bb344ea4846c90fe1532216e71e75",
      "fileid": "27d0e8d6192bb1dd7a08ba9c832c61a3345b470d095b2177ab57168890eb07a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yblan/actions/runs/25658785582"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-05-11T08:26:59.000Z",
      "distro": "noble",
      "commit": "66de5c78d76bb344ea4846c90fe1532216e71e75",
      "fileid": "d957678f8790c412115ef5f999670b7abfc369b05fa6ef15680e2c9a8953feda",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yblan/actions/runs/25658785582"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0",
      "date": "2026-05-11T08:27:16.000Z",
      "commit": "66de5c78d76bb344ea4846c90fe1532216e71e75",
      "fileid": "8e8d0de61ad67546d1436bf4b98055943829ec32e50fbe4adb924ca1662dbe08",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yblan/actions/runs/25658785582"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0",
      "date": "2026-05-11T08:27:24.000Z",
      "commit": "66de5c78d76bb344ea4846c90fe1532216e71e75",
      "fileid": "54676333ec4501878631fc3c5a98b4b53f5c343f81a9bf199aa2dd002c3fca41",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yblan/actions/runs/25658785582"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-11T08:26:37.000Z",
      "commit": "66de5c78d76bb344ea4846c90fe1532216e71e75",
      "fileid": "8f76591f32dea785618b223ce826940919dff3f730e9c48484afbdf83da22fc6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yblan/actions/runs/25658785582"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-11T08:26:17.000Z",
      "commit": "66de5c78d76bb344ea4846c90fe1532216e71e75",
      "fileid": "2f1c8aa68c71c5e690e94acc5c730732a5ff2172aebfb5687dfcbcc73c1e126b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yblan/actions/runs/25658785582"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-11T08:26:21.000Z",
      "commit": "66de5c78d76bb344ea4846c90fe1532216e71e75",
      "fileid": "8e350c6204c55d41f4bf4ed308cc229bd9839c91fe199b6491f5f86d2dd99bd5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yblan/actions/runs/25658785582"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0",
      "date": "2026-05-22T11:37:48.000Z",
      "commit": "66de5c78d76bb344ea4846c90fe1532216e71e75",
      "fileid": "ee3f965d35b8298e297a695ddc30ebc7751294402cbd426e471c753cef7d5c33",
      "status": "success",
      "buildurl": "https://github.com/r-universe/yblan/actions/runs/25658785582"
    }
  ]
}