{
  "_id": "6acd750ba14063b82c3abd06",
  "Type": "Package",
  "Package": "distspec",
  "Title": "Probability Distributions with Certain or Uncertain Parameters",
  "Version": "0.3.0",
  "Authors@R": "c(person(given = \"Sebastian\",\nfamily = \"Funk\",\nrole = c(\"aut\", \"cre\"),\nemail = \"sebastian.funk@lshtm.ac.uk\",\ncomment = c(ORCID = \"0000-0002-2842-3406\")),\nperson(given = \"James M.\",\nfamily = \"Azam\",\nrole = \"aut\",\nemail = \"james.azam@lshtm.ac.uk\",\ncomment = c(ORCID = \"0000-0001-5782-7330\")),\nperson(given = \"Sam\",\nfamily = \"Abbott\",\nrole = c(\"aut\"),\nemail = \"sam.abbott@lshtm.ac.uk\",\ncomment = c(ORCID = \"0000-0001-8057-8037\"))\n)",
  "Description": "Represents probability distributions with fixed or\npotentially uncertain parameters, with tools to discretise,\nconvolve, sample from and summarise them.",
  "License": "MIT + file LICENSE",
  "URL": "https://epiforecasts.io/distspec/,\nhttps://github.com/epiforecasts/distspec",
  "BugReports": "https://github.com/epiforecasts/distspec/issues",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Repository": "https://epiforecasts.r-universe.dev",
  "Date/Publication": "2026-10-12 19:11:01 UTC",
  "RemoteUrl": "https://github.com/epiforecasts/distspec",
  "RemoteRef": "HEAD",
  "RemoteSha": "d8b8ca2c4842f0cfcfc3139f7a0759d93b4e141c",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-12 23:24:34 UTC",
    "User": "root"
  },
  "Author": "Sebastian Funk [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-2842-3406>),\nJames M. Azam [aut] (ORCID: <https://orcid.org/0000-0001-5782-7330>),\nSam Abbott [aut] (ORCID: <https://orcid.org/0000-0001-8057-8037>)",
  "Maintainer": "Sebastian Funk <sebastian.funk@lshtm.ac.uk>",
  "_user": "epiforecasts",
  "_type": "src",
  "_file": "distspec_0.3.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/5dec3e950fb357b5681919372f367bd36f55cac76e3101c6a549c1bfe9a80a21",
  "_filesize": 482062,
  "_sha256": "5dec3e950fb357b5681919372f367bd36f55cac76e3101c6a549c1bfe9a80a21",
  "_expires": "2027-01-21T00:02:17.000Z",
  "_created": "2026-10-12T23:24:34.000Z",
  "_published": "2026-10-13T00:02:19.512Z",
  "_buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38321717331",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115052003415,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11779008468"
    },
    {
      "job": 115052003221,
      "time": 121,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11779366029"
    },
    {
      "job": 115052003348,
      "time": 100,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11780621449"
    },
    {
      "job": 115052003289,
      "time": 124,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11780477114"
    },
    {
      "job": 115051186709,
      "time": 170,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11778428473"
    },
    {
      "job": 115052003166,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11778403867"
    },
    {
      "job": 115052003234,
      "time": 102,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11779063318"
    },
    {
      "job": 115052003332,
      "time": 86,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11778488635"
    },
    {
      "job": 115052003257,
      "time": 96,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11779059966"
    }
  ],
  "_upstream": "https://github.com/epiforecasts/distspec",
  "_commit": {
    "id": "d8b8ca2c4842f0cfcfc3139f7a0759d93b4e141c",
    "author": "sbfnk-bot <242615673+sbfnk-bot@users.noreply.github.com>",
    "committer": "sbfnk-bot <242615673+sbfnk-bot@users.noreply.github.com>",
    "message": "Drop the changelog duplication from cran-comments.md\n\nCo-authored-by: sbfnk <sebastian.funk@lshtm.ac.uk>\n",
    "time": 1791832261
  },
  "_maintainer": {
    "name": "Sebastian Funk",
    "email": "sebastian.funk@lshtm.ac.uk",
    "login": "sbfnk",
    "mastodon": "@sbfnk@fosstodon.org",
    "bluesky": "@sbfnk.bsky.social",
    "orcid": "0000-0002-2842-3406",
    "description": "Professor of Infectious Disease Dynamics at LSHTM. epiforecasts.io",
    "uuid": 1156307
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "primarycensored",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "truncnorm",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "epiforecasts",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2025-44",
      "n": 1
    },
    {
      "week": "2025-46",
      "n": 1
    },
    {
      "week": "2025-48",
      "n": 2
    },
    {
      "week": "2025-51",
      "n": 5
    },
    {
      "week": "2026-27",
      "n": 4
    },
    {
      "week": "2026-28",
      "n": 13
    },
    {
      "week": "2026-29",
      "n": 22
    },
    {
      "week": "2026-30",
      "n": 40
    },
    {
      "week": "2026-31",
      "n": 3
    },
    {
      "week": "2026-34",
      "n": 2
    },
    {
      "week": "2026-35",
      "n": 4
    },
    {
      "week": "2026-36",
      "n": 6
    },
    {
      "week": "2026-40",
      "n": 1
    },
    {
      "week": "2026-41",
      "n": 4
    },
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.2.0",
      "date": "2026-09-01"
    },
    {
      "name": "v0.3.0",
      "date": "2026-10-07"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "sbfnk",
      "count": 115,
      "uuid": 1156307
    },
    {
      "user": "sbfnk-bot",
      "count": 56,
      "uuid": 242615673
    },
    {
      "user": "seabbs",
      "count": 1,
      "uuid": 20317649
    }
  ],
  "_userbio": {
    "uuid": 54675094,
    "type": "organization",
    "name": "Epiforecasts",
    "followers": 77,
    "description": "Researchers at the London School of Hygiene & Tropical Medicine doing research to forecast infectious diseases and perform real-time analyses."
  },
  "_downloads": {
    "count": 335,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/distspec"
  },
  "_devurl": "https://github.com/epiforecasts/distspec",
  "_pkgdown": "https://epiforecasts.io/distspec/",
  "_searchresults": 4,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/distspec.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/epiforecasts/distspec",
  "_realowner": "epiforecasts",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-08-07"
    },
    {
      "version": "0.2.0",
      "date": "2026-09-08"
    },
    {
      "version": "0.3.0",
      "date": "2026-10-12"
    }
  ],
  "_exports": [
    "as_dist_spec",
    "Beta",
    "bound_dist",
    "cdf",
    "collapse",
    "convert_to_logmean",
    "convert_to_logsd",
    "Dirichlet",
    "discretise",
    "discretize",
    "dist_cdf",
    "dist_quantile",
    "Exp",
    "Exponential",
    "fix_parameters",
    "Fixed",
    "Gamma",
    "get_distribution",
    "get_parameters",
    "get_pmf",
    "has_uncertainty",
    "is_constrained",
    "LogNormal",
    "lower_bounds",
    "natural_params",
    "ndist",
    "new_dist_spec",
    "NonParametric",
    "Normal",
    "sample_dist",
    "sd",
    "Weibull"
  ],
  "_help": [
    {
      "page": "plus-.dist_spec",
      "title": "Creates a delay distribution as the sum of two other delay distributions.",
      "topics": [
        "+.dist_spec"
      ]
    },
    {
      "page": "equals-.dist_spec",
      "title": "Compares two delay distributions",
      "topics": [
        "!=.dist_spec",
        "==.dist_spec"
      ]
    },
    {
      "page": "as_dist_spec",
      "title": "Coerce an object to a <dist_spec>",
      "topics": [
        "as_dist_spec",
        "as_dist_spec.default",
        "as_dist_spec.dist_spec",
        "as_dist_spec.numeric"
      ]
    },
    {
      "page": "Beta",
      "title": "Beta distribution",
      "topics": [
        "Beta"
      ]
    },
    {
      "page": "bound_dist",
      "title": "Define bounds of a <dist_spec>",
      "topics": [
        "bound_dist"
      ]
    },
    {
      "page": "c.dist_spec",
      "title": "Combines multiple delay distributions for further processing",
      "topics": [
        "c.dist_spec"
      ]
    },
    {
      "page": "cdf",
      "title": "Returns the cumulative distribution function of a delay distribution",
      "topics": [
        "cdf",
        "cdf.dist_spec",
        "cdf.multi_dist_spec"
      ]
    },
    {
      "page": "collapse",
      "title": "Collapse nonparametric distributions in a <dist_spec>",
      "topics": [
        "collapse",
        "collapse.dist_spec"
      ]
    },
    {
      "page": "convert_to_logmean",
      "title": "Convert mean and sd to log mean for a log normal distribution",
      "topics": [
        "convert_to_logmean"
      ]
    },
    {
      "page": "convert_to_logsd",
      "title": "Convert mean and sd to log standard deviation for a log normal distribution",
      "topics": [
        "convert_to_logsd"
      ]
    },
    {
      "page": "Dirichlet",
      "title": "Dirichlet prior for a nonparametric distribution",
      "topics": [
        "Dirichlet"
      ]
    },
    {
      "page": "discretise",
      "title": "Discretise a <dist_spec>",
      "topics": [
        "discretise",
        "discretise.dist_spec",
        "discretize"
      ]
    },
    {
      "page": "Distributions",
      "title": "Probability distributions",
      "topics": [
        "Distributions"
      ]
    },
    {
      "page": "Exponential",
      "title": "Exponential distribution",
      "topics": [
        "Exp",
        "Exponential"
      ]
    },
    {
      "page": "fix_parameters",
      "title": "Fix the parameters of a <dist_spec>",
      "topics": [
        "fix_parameters",
        "fix_parameters.dist_spec"
      ]
    },
    {
      "page": "Fixed",
      "title": "Fixed (point-mass) distribution",
      "topics": [
        "Fixed"
      ]
    },
    {
      "page": "Gamma",
      "title": "Gamma distribution",
      "topics": [
        "Gamma"
      ]
    },
    {
      "page": "get_distribution",
      "title": "Get the distribution of a <dist_spec>",
      "topics": [
        "get_distribution"
      ]
    },
    {
      "page": "get_parameters",
      "title": "Get parameters of a parametric distribution",
      "topics": [
        "get_parameters",
        "get_parameters.dist_spec"
      ]
    },
    {
      "page": "get_pmf",
      "title": "Get the probability mass function of a nonparametric distribution",
      "topics": [
        "get_pmf"
      ]
    },
    {
      "page": "has_uncertainty",
      "title": "Check whether a <dist_spec> is uncertain",
      "topics": [
        "has_uncertainty"
      ]
    },
    {
      "page": "is_constrained",
      "title": "Check if a <dist_spec> is constrained, i.e. has a finite maximum or nonzero CDF cutoff.",
      "topics": [
        "is_constrained",
        "is_constrained.dist_spec"
      ]
    },
    {
      "page": "LogNormal",
      "title": "Lognormal distribution",
      "topics": [
        "LogNormal"
      ]
    },
    {
      "page": "max.dist_spec",
      "title": "Returns the maximum of one or more delay distribution",
      "topics": [
        "max.dist_spec"
      ]
    },
    {
      "page": "mean.dist_spec",
      "title": "Returns the mean of one or more delay distribution",
      "topics": [
        "mean.dist_spec"
      ]
    },
    {
      "page": "new_dist_spec",
      "title": "Internal function for generating a 'dist_spec' given parameters and a distribution.",
      "topics": [
        "new_dist_spec"
      ]
    },
    {
      "page": "NonParametric",
      "title": "Nonparametric distribution",
      "topics": [
        "NonParametric"
      ]
    },
    {
      "page": "Normal",
      "title": "Normal distribution",
      "topics": [
        "Normal"
      ]
    },
    {
      "page": "plot.dist_spec",
      "title": "Plot PMF and CDF for a dist_spec object",
      "topics": [
        "plot.dist_spec"
      ]
    },
    {
      "page": "print.dist_spec",
      "title": "Prints the parameters of one or more delay distributions",
      "topics": [
        "print.dist_spec"
      ]
    },
    {
      "page": "quantile.dist_spec",
      "title": "Returns quantiles of a delay distribution",
      "topics": [
        "quantile.dist_spec",
        "quantile.multi_dist_spec"
      ]
    },
    {
      "page": "sample_dist",
      "title": "Sample from a distribution",
      "topics": [
        "sample_dist",
        "sample_dist.dist_spec",
        "sample_dist.multi_dist_spec"
      ]
    },
    {
      "page": "Weibull",
      "title": "Weibull distribution",
      "topics": [
        "Weibull"
      ]
    }
  ],
  "_pkglogo": "https://github.com/epiforecasts/distspec/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/epiforecasts/distspec/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "lifecycle",
    "primarycensored",
    "rlang",
    "truncnorm"
  ],
  "_vignettes": [
    {
      "source": "distspec.Rmd",
      "filename": "distspec.html",
      "title": "Getting started with distspec",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Quick start",
        "Defining a distribution",
        "Uncertain parameters",
        "Discretising",
        "Combining distributions",
        "Plotting",
        "Sampling",
        "Uncertain nonparametric distributions"
      ],
      "created": "2026-07-20 08:44:31",
      "modified": "2026-08-24 17:59:27",
      "commits": 5
    }
  ],
  "_score": 5.954242509439325,
  "_indexed": true,
  "_nocasepkg": "distspec",
  "_universes": [
    "epiforecasts",
    "sbfnk"
  ],
  "_previous": "0.2.0.9000",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-12T23:27:16.000Z",
      "distro": "resolute",
      "commit": "d8b8ca2c4842f0cfcfc3139f7a0759d93b4e141c",
      "fileid": "https://r2.ropensci.org/33aa1735086ba79dc65c9fd87ef9eb4149a6091b80e58161a050667405b8d5cc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38321717331"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-12T23:26:59.000Z",
      "distro": "resolute",
      "commit": "d8b8ca2c4842f0cfcfc3139f7a0759d93b4e141c",
      "fileid": "https://r2.ropensci.org/7b4662cd8b78a68f6f5eb6171398dbc0dc608b76f2441795c79ce5835562c3b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38321717331"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-10-13T00:00:34.000Z",
      "commit": "d8b8ca2c4842f0cfcfc3139f7a0759d93b4e141c",
      "fileid": "https://r2.ropensci.org/8d5a44c7db0ef9b58f038bc4c8c5753a9ee7281576a4610e73023026db5f7211",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38321717331"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-10-13T00:01:27.000Z",
      "commit": "d8b8ca2c4842f0cfcfc3139f7a0759d93b4e141c",
      "fileid": "https://r2.ropensci.org/c9d0c35c7fc48fc2c90c2cffb201b097a8ab39cfaa9916f1ce03673c328784b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38321717331"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-10-12T23:27:11.000Z",
      "commit": "d8b8ca2c4842f0cfcfc3139f7a0759d93b4e141c",
      "fileid": "https://r2.ropensci.org/0959dad1d8b16265056ff99e4c793bc83616f4c1b45fc8b12947401cf1853862",
      "status": "success",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38321717331"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-12T23:26:15.000Z",
      "commit": "d8b8ca2c4842f0cfcfc3139f7a0759d93b4e141c",
      "fileid": "https://r2.ropensci.org/09e40621afb5d6723aa8a34029bba47e4e637298fa765c057fc5559bb51a47d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38321717331"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-12T23:26:07.000Z",
      "commit": "d8b8ca2c4842f0cfcfc3139f7a0759d93b4e141c",
      "fileid": "https://r2.ropensci.org/38571605ca44bcbd1adf32baed2b06267019b0e1b91d3ad1be43ff255ab91a84",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38321717331"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-12T23:26:15.000Z",
      "commit": "d8b8ca2c4842f0cfcfc3139f7a0759d93b4e141c",
      "fileid": "https://r2.ropensci.org/95971968507fe432a888b7aa00ef699778cc2b73749fc615693febf458d03114",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38321717331"
    }
  ]
}