{
  "_id": "6a105399acfb0bcc41ca1cc9",
  "Package": "epichains",
  "Title": "Simulating and Analysing Transmission Chain Statistics Using\nBranching Process Models",
  "Version": "0.1.1.9000",
  "Authors@R": "c(\nperson(\"James M.\", \"Azam\", , \"james.azam@lshtm.ac.uk\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0001-5782-7330\")),\nperson(\"Sebastian\", \"Funk\", , \"sebastian.funk@lshtm.ac.uk\", role = c(\"aut\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-2842-3406\")),\nperson(\"Flavio\", \"Finger\", , \"flavio.finger@epicentre.msf.org\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-8613-5170\")),\nperson(\"Zhian N.\", \"Kamvar\", , \"zkamvar@gmail.com\", role = \"ctb\",\ncomment = c(ORCID = \"0000-0003-1458-7108\")),\nperson(\"Hugo\", \"Gruson\", , \"hugo@data.org\", role = c(\"ctb\", \"rev\"),\ncomment = c(ORCID = \"0000-0002-4094-1476\")),\nperson(\"Karim\", \"Mané\", , \"karim.mane@lshtm.ac.uk\", role = \"rev\",\ncomment = c(ORCID = \"0000-0002-9892-2999\")),\nperson(\"Pratik\", \"Gupte\", , \"pratik.gupte@lshtm.ac.uk\", role = \"rev\",\ncomment = c(ORCID = \"0000-0001-5294-7819\")),\nperson(\"Joshua W.\", \"Lambert\", , \"joshua.lambert@lshtm.ac.uk\", role = \"rev\",\ncomment = c(ORCID = \"0000-0001-5218-3046\")),\nperson(\"Chris\", \"Hartgerink\", , \"chris@data.org\", role = \"ctb\",\ncomment = c(ORCID = \"0000-0003-1050-6809\"))\n)",
  "Description": "Provides methods to simulate and analyse the size and\nlength of branching processes with an arbitrary offspring\ndistribution. These can be used, for example, to analyse the\ndistribution of chain sizes or length of infectious disease\noutbreaks, as discussed in Farrington et al. (2003)\n<doi:10.1093/biostatistics/4.2.279>.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/epiverse-trace/epichains,\nhttps://epiverse-trace.github.io/epichains/",
  "BugReports": "https://github.com/epiverse-trace/epichains/issues",
  "VignetteBuilder": "knitr",
  "Config/Needs/website": "epiverse-trace/epiversetheme",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2.9000",
  "Repository": "https://epiverse-trace.r-universe.dev",
  "Date/Publication": "2026-03-30 16:09:16 UTC",
  "RemoteUrl": "https://github.com/epiverse-trace/epichains",
  "RemoteRef": "HEAD",
  "RemoteSha": "8ea4052884c826034e680b29e003d54a73e0adb8",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-09 08:55:35 UTC",
    "User": "root"
  },
  "Author": "James M. Azam [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0001-5782-7330>),\nSebastian Funk [aut, cph] (ORCID:\n<https://orcid.org/0000-0002-2842-3406>),\nFlavio Finger [aut] (ORCID: <https://orcid.org/0000-0002-8613-5170>),\nZhian N. Kamvar [ctb] (ORCID: <https://orcid.org/0000-0003-1458-7108>),\nHugo Gruson [ctb, rev] (ORCID: <https://orcid.org/0000-0002-4094-1476>),\nKarim Mané [rev] (ORCID: <https://orcid.org/0000-0002-9892-2999>),\nPratik Gupte [rev] (ORCID: <https://orcid.org/0000-0001-5294-7819>),\nJoshua W. Lambert [rev] (ORCID:\n<https://orcid.org/0000-0001-5218-3046>),\nChris Hartgerink [ctb] (ORCID: <https://orcid.org/0000-0003-1050-6809>)",
  "Maintainer": "James M. Azam <james.azam@lshtm.ac.uk>",
  "MD5sum": "498143bcc9788294e7306ba4c1cdd21a",
  "_user": "epiverse-trace",
  "_type": "src",
  "_file": "epichains_0.1.1.9000.tar.gz",
  "_fileid": "608f5bafe87ac8d772a3cbf0419b8cc853ee0c3554fa76b0bf68caac0348761b",
  "_filesize": 787528,
  "_sha256": "608f5bafe87ac8d772a3cbf0419b8cc853ee0c3554fa76b0bf68caac0348761b",
  "_created": "2026-05-09T08:55:35.000Z",
  "_published": "2026-05-22T13:01:13.926Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77384531577,
      "time": 129,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6894481456"
    },
    {
      "job": 77384531385,
      "time": 123,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894480872"
    },
    {
      "job": 77384531857,
      "time": 117,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6894480211"
    },
    {
      "job": 77384531368,
      "time": 112,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894479809"
    },
    {
      "job": 77384530753,
      "time": 226,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894469466"
    },
    {
      "job": 77384530760,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7161095467"
    },
    {
      "job": 77384531505,
      "time": 77,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6894476570"
    },
    {
      "job": 77384531909,
      "time": 87,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6894477499"
    },
    {
      "job": 77384531707,
      "time": 72,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894476126"
    }
  ],
  "_buildurl": "https://github.com/r-universe/epiverse-trace/actions/runs/25596979523",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/epiverse-trace/epichains",
  "_commit": {
    "id": "8ea4052884c826034e680b29e003d54a73e0adb8",
    "author": "dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>",
    "committer": "James Azam <james.m.azam@gmail.com>",
    "message": "Bump codecov/codecov-action from 5 to 6\n\nBumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5 to 6.\n- [Release notes](https://github.com/codecov/codecov-action/releases)\n- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)\n- [Commits](https://github.com/codecov/codecov-action/compare/v5...v6)\n\n---\nupdated-dependencies:\n- dependency-name: codecov/codecov-action\n  dependency-version: '6'\n  dependency-type: direct:production\n  update-type: version-update:semver-major\n...\n\nSigned-off-by: dependabot[bot] <support@github.com>",
    "time": 1774886956
  },
  "_maintainer": {
    "name": "James M. Azam",
    "email": "james.azam@lshtm.ac.uk",
    "login": "jamesmbaazam",
    "linkedin": "in/james-azam-phd-6b5b00176",
    "orcid": "0000-0001-5782-7330",
    "twitter": "@james_azam",
    "uuid": 43169674
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "bookdown",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "epicontacts",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lubridate",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "truncdist",
      "role": "Suggests"
    }
  ],
  "_owner": "epiverse-trace",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-21",
      "n": 3
    },
    {
      "week": "2025-34",
      "n": 2
    },
    {
      "week": "2025-35",
      "n": 5
    },
    {
      "week": "2025-44",
      "n": 1
    },
    {
      "week": "2025-46",
      "n": 1
    },
    {
      "week": "2025-48",
      "n": 13
    },
    {
      "week": "2025-51",
      "n": 3
    },
    {
      "week": "2026-02",
      "n": 2
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-10",
      "n": 1
    },
    {
      "week": "2026-14",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "branching-processes",
    "epidemic-dynamics",
    "epidemic-modelling",
    "epidemic-simulations",
    "epidemiology",
    "epidemiology-models",
    "outbreak-simulator",
    "transmission-chain",
    "transmission-chain-reconstruction"
  ],
  "_stars": 10,
  "_contributors": [
    {
      "user": "jamesmbaazam",
      "count": 1208,
      "uuid": 43169674
    },
    {
      "user": "sbfnk",
      "count": 77,
      "uuid": 1156307
    },
    {
      "user": "bisaloo",
      "count": 16,
      "uuid": 10783929
    },
    {
      "user": "chartgerink",
      "count": 5,
      "uuid": 2946344
    },
    {
      "user": "ffinger",
      "count": 3,
      "uuid": 12323626
    },
    {
      "user": "degoot-am",
      "count": 1,
      "uuid": 19929487
    },
    {
      "user": "zkamvar",
      "count": 1,
      "uuid": 3639446
    }
  ],
  "_userbio": {
    "uuid": 101338582,
    "type": "organization",
    "name": "Epiverse-TRACE"
  },
  "_downloads": {
    "count": 245,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/epichains"
  },
  "_devurl": "https://github.com/epiverse-trace/epichains",
  "_pkgdown": "https://epiverse-trace.github.io/epichains/",
  "_searchresults": 26,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/epichains.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/epiverse-trace/epichains",
  "_realowner": "epiverse-trace",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2024-10-14"
    }
  ],
  "_exports": [
    "dborel",
    "likelihood",
    "rborel",
    "rgborel",
    "simulate_chain_stats",
    "simulate_chains"
  ],
  "_datasets": [
    {
      "name": "covid19_sa",
      "title": "COVID-19 Data Repository for South Africa",
      "object": "covid19_sa",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "cases"
      ],
      "rows": 14,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "aggregate.epichains",
      "title": "Aggregate cases in <epichains> objects by \"generation\" or \"time\", if present",
      "topics": [
        "aggregate.epichains"
      ]
    },
    {
      "page": "covid19_sa",
      "title": "COVID-19 Data Repository for South Africa",
      "topics": [
        "covid19_sa"
      ]
    },
    {
      "page": "dborel",
      "title": "Density of the Borel distribution",
      "topics": [
        "dborel"
      ]
    },
    {
      "page": "head.epichains",
      "title": "'head' and 'tail' method for <epichains> class",
      "topics": [
        "head.epichains",
        "tail.epichains"
      ]
    },
    {
      "page": "likelihood",
      "title": "Estimate the log-likelihood/likelihood for observed branching processes",
      "topics": [
        "likelihood"
      ]
    },
    {
      "page": "print.epichains",
      "title": "Print an <epichains> object",
      "topics": [
        "print.epichains"
      ]
    },
    {
      "page": "print.epichains_summary",
      "title": "Print an <epichains_summary> object",
      "topics": [
        "print.epichains_summary"
      ]
    },
    {
      "page": "rborel",
      "title": "Generate random numbers from the Borel distribution",
      "topics": [
        "rborel"
      ]
    },
    {
      "page": "rgborel",
      "title": "Generate random numbers from a Gamma-Borel mixture distribution",
      "topics": [
        "rgborel"
      ]
    },
    {
      "page": "simulate_chain_stats",
      "title": "Simulate a vector of transmission chains statistics (sizes/lengths)",
      "topics": [
        "simulate_chain_stats"
      ]
    },
    {
      "page": "simulate_chains",
      "title": "Simulate transmission chains",
      "topics": [
        "simulate_chains"
      ]
    },
    {
      "page": "summary.epichains",
      "title": "Summary method for <epichains> class",
      "topics": [
        "summary.epichains"
      ]
    },
    {
      "page": "summary.epichains_summary",
      "title": "Summary method for <epichains_summary> class",
      "topics": [
        "summary.epichains_summary"
      ]
    }
  ],
  "_pkglogo": "https://github.com/epiverse-trace/epichains/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/epiverse-trace/epichains/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "checkmate"
  ],
  "_vignettes": [
    {
      "source": "design-principles.Rmd",
      "filename": "design-principles.html",
      "title": "Design Principles for {epichains}",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Scope",
        "Design decisions",
        "Simulation functions",
        "likelihood estimation",
        "Naming and documentation style",
        "Dependencies",
        "Development journey"
      ],
      "created": "2024-05-15 15:51:34",
      "modified": "2024-10-17 11:02:54",
      "commits": 18
    },
    {
      "source": "epichains.Rmd",
      "filename": "epichains.html",
      "title": "Getting started with epichains",
      "author": "James M. Azam and Sebastian Funk",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Transmission chains likelihoods",
        "Use case",
        "What we have",
        "What we assume",
        "likelihood()",
        "Joint and individual log-likelihoods",
        "Observation probability",
        "How likelihood() works",
        "Transmission chain simulation",
        "simulate_chains()",
        "simulate_chain_stats()",
        "S3 Methods",
        "Summarising",
        "Aggregating",
        "Plotting",
        "Some notes about interoperability between <epicontacts> and <epichains> objects",
        "References"
      ],
      "created": "2023-09-02 17:32:11",
      "modified": "2024-05-23 15:31:41",
      "commits": 68
    },
    {
      "source": "branching_process_literature.Rmd",
      "filename": "branching_process_literature.html",
      "title": "Literature on branching process applications",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Bibliography"
      ],
      "created": "2023-09-25 12:59:24",
      "modified": "2024-06-21 11:20:29",
      "commits": 2
    },
    {
      "source": "interventions.Rmd",
      "filename": "interventions.html",
      "title": "Modelling disease control interventions",
      "author": "Sebastian Funk and James M. Azam",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Reducing the strength of transmission",
        "Population-wide control",
        "Individual-level control.",
        "Preventing superspreading events",
        "Truncating the generation interval",
        "References"
      ],
      "created": "2023-11-10 09:14:20",
      "modified": "2024-10-17 11:02:54",
      "commits": 17
    },
    {
      "source": "projecting_incidence.Rmd",
      "filename": "projecting_incidence.html",
      "title": "Projecting infectious disease incidence: a COVID-19 example",
      "author": "James Azam, Sebastian Funk",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Data",
        "Setting up the inputs",
        "Onset times",
        "Generation time",
        "Offspring distribution",
        "Simulation controls",
        "Modelling assumptions",
        "Running the simulations",
        "Post-processing",
        "Visualization",
        "References"
      ],
      "created": "2023-03-06 16:28:20",
      "modified": "2024-10-17 11:02:54",
      "commits": 73
    },
    {
      "source": "theoretical_background.Rmd",
      "filename": "theoretical_background.html",
      "title": "Theoretical background for epichains",
      "author": "Sebastian Funk and James Azam",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Branching processes",
        "Simulation",
        "Summary statistics",
        "Inference",
        "Size and length distributions for some offspring distributions",
        "Negative binomial and special cases",
        "Size distributions",
        "Length distributions",
        "Gamma-Borel mixture",
        "Numerical approximations of chain size and length distributions",
        "References"
      ],
      "created": "2023-09-25 14:03:01",
      "modified": "2025-08-29 10:57:03",
      "commits": 5
    }
  ],
  "_score": 7.71163853823235,
  "_indexed": true,
  "_nocasepkg": "epichains",
  "_universes": [
    "epiverse-trace",
    "jamesmbaazam"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1.9000",
      "date": "2026-05-09T08:57:49.000Z",
      "distro": "noble",
      "commit": "8ea4052884c826034e680b29e003d54a73e0adb8",
      "fileid": "536d16f77c2f1bdf7f0f6d7f4442ad9d2822910f57e3b6e55feaf742002cc8ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiverse-trace/actions/runs/25596979523"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1.9000",
      "date": "2026-05-09T08:57:45.000Z",
      "distro": "noble",
      "commit": "8ea4052884c826034e680b29e003d54a73e0adb8",
      "fileid": "fc065b1afe73bba32a1da4f1af9ba7f833ddc3b640e79b5e97676f7edead55fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiverse-trace/actions/runs/25596979523"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1.9000",
      "date": "2026-05-09T08:57:35.000Z",
      "commit": "8ea4052884c826034e680b29e003d54a73e0adb8",
      "fileid": "0e1aa6da916a64e8030fe0d95028dec77e22aaccc9dac2d517b6f5dcda7deb7d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiverse-trace/actions/runs/25596979523"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1.9000",
      "date": "2026-05-09T08:57:30.000Z",
      "commit": "8ea4052884c826034e680b29e003d54a73e0adb8",
      "fileid": "c64f8011d26d6825324328155e2f381007fda5805cbd61f00bd129883383edb9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiverse-trace/actions/runs/25596979523"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-05-09T08:56:52.000Z",
      "commit": "8ea4052884c826034e680b29e003d54a73e0adb8",
      "fileid": "71df814276b333d245bc3592ce29a82786f84c97be7cf367e5a66e570c8db272",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiverse-trace/actions/runs/25596979523"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-05-09T08:57:00.000Z",
      "commit": "8ea4052884c826034e680b29e003d54a73e0adb8",
      "fileid": "90bbf6408d472ef29de02efd049d6c18a3cb48b09913e3ae7c48d144e71d1f04",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiverse-trace/actions/runs/25596979523"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-05-09T08:56:46.000Z",
      "commit": "8ea4052884c826034e680b29e003d54a73e0adb8",
      "fileid": "febe149ea18345936f9962d2e610d5c29b637f8021f14f6fb2920e3a72473a4b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epiverse-trace/actions/runs/25596979523"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1.9000",
      "date": "2026-05-22T13:00:42.000Z",
      "commit": "8ea4052884c826034e680b29e003d54a73e0adb8",
      "fileid": "c06af247a5ac417118cb1fa0ef98c09b668751a281332b18fedd96432f09619f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/epiverse-trace/actions/runs/25596979523"
    }
  ]
}