{
  "_id": "6a1f11bdb401979e7341daf8",
  "Package": "incidence",
  "Type": "Package",
  "Title": "Compute, Handle, Plot and Model Incidence of Dated Events",
  "Version": "1.7.6",
  "Authors@R": "c(\nperson(\"Thibaut\", \"Jombart\", role = c(\"aut\"), email = \"thibautjombart@gmail.com\"),\nperson(\"Zhian N.\", \"Kamvar\", role = \"aut\", email = \"zkamvar@gmail.com\",\ncomment = c(ORCID = \"0000-0003-1458-7108\")),\nperson(\"Rich\", \"FitzJohn\", role = \"aut\", email = \"rich.fitzjohn@gmail.com\"),\nperson(\"Tim\", \"Taylor\", role = \"cre\", email = \"tim.taylor@hiddenelephants.co.uk\",\ncomment = c(ORCID = \"0000-0002-8587-7113\")),\nperson(\"Jun\", \"Cai\", role = \"ctb\", email = \"cai-j12@mails.tsinghua.edu.cn\",\ncomment = c(ORCID = \"0000-0001-9495-1226\")),\nperson(\"Sangeeta\", \"Bhatia\", role = \"ctb\", email = \"sangeetabhatia03@gmail.com\"),\nperson(\"Jakob\", \"Schumacher\", role = \"ctb\"),\nperson(\"Juliet R.C.\", \"Pulliam\", role = \"ctb\", email = \"pulliam@sun.ac.za\",\ncomment = c(ORCID = \"0000-0003-3314-8223\"))\n)",
  "Description": "Provides functions and classes to compute, handle and\nvisualise incidence from dated events for a defined time\ninterval. Dates can be provided in various standard formats.\nThe class 'incidence' is used to store computed incidence and\ncan be easily manipulated, subsetted, and plotted. In addition,\nlog-linear models can be fitted to 'incidence' objects using\n'fit'. This package is part of the RECON\n(<https://www.repidemicsconsortium.org/>) toolkit for outbreak\nanalysis.",
  "Encoding": "UTF-8",
  "License": "MIT + file LICENSE",
  "URL": "https://www.repidemicsconsortium.org/incidence/",
  "BugReports": "https://github.com/reconhub/incidence/issues",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Roxygen": "list(markdown = TRUE)",
  "Repository": "https://reconhub.r-universe.dev",
  "Date/Publication": "2025-06-19 21:25:56 UTC",
  "RemoteUrl": "https://github.com/reconhub/incidence",
  "RemoteRef": "HEAD",
  "RemoteSha": "bda31a524af302650727b396605729ea02513353",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-17 07:53:24 UTC",
    "User": "root"
  },
  "Author": "Thibaut Jombart [aut],\nZhian N. Kamvar [aut] (ORCID: <https://orcid.org/0000-0003-1458-7108>),\nRich FitzJohn [aut],\nTim Taylor [cre] (ORCID: <https://orcid.org/0000-0002-8587-7113>),\nJun Cai [ctb] (ORCID: <https://orcid.org/0000-0001-9495-1226>),\nSangeeta Bhatia [ctb],\nJakob Schumacher [ctb],\nJuliet R.C. Pulliam [ctb] (ORCID:\n<https://orcid.org/0000-0003-3314-8223>)",
  "Maintainer": "Tim Taylor <tim.taylor@hiddenelephants.co.uk>",
  "MD5sum": "fa82656815b1f1af011d89107252ed27",
  "_user": "reconhub",
  "_type": "src",
  "_file": "incidence_1.7.6.tar.gz",
  "_fileid": "66ce24157970a8d15f99a66cb6e787a471efcb5cf4d3324455161002cf35e776",
  "_filesize": 3322566,
  "_sha256": "66ce24157970a8d15f99a66cb6e787a471efcb5cf4d3324455161002cf35e776",
  "_created": "2026-05-17T07:53:24.000Z",
  "_published": "2026-06-02T17:24:13.306Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79131159318,
      "time": 130,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7040601500"
    },
    {
      "job": 79131160141,
      "time": 130,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040601465"
    },
    {
      "job": 79131159632,
      "time": 117,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7040599950"
    },
    {
      "job": 79131159457,
      "time": 104,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040598228"
    },
    {
      "job": 79131159007,
      "time": 193,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040585690"
    },
    {
      "job": 79131157519,
      "time": 104,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7365007279"
    },
    {
      "job": 79131159266,
      "time": 90,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7040596679"
    },
    {
      "job": 79131159302,
      "time": 84,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7040595900"
    },
    {
      "job": 79131159424,
      "time": 87,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040596235"
    }
  ],
  "_buildurl": "https://github.com/r-universe/reconhub/actions/runs/25985085142",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/reconhub/incidence",
  "_commit": {
    "id": "bda31a524af302650727b396605729ea02513353",
    "author": "Tim Taylor <tim.taylor@hiddenelephants.co.uk>",
    "committer": "Tim Taylor <tim.taylor@hiddenelephants.co.uk>",
    "message": "CRAN: submission + site rebuild\n",
    "time": 1750368356
  },
  "_maintainer": {
    "name": "Tim Taylor",
    "email": "tim.taylor@hiddenelephants.co.uk",
    "login": "timtaylor",
    "description": "\n",
    "uuid": 43499035,
    "orcid": "0000-0002-8587-7113"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "ggplot2",
      "version": ">= 3.3.2",
      "role": "Imports"
    },
    {
      "package": "aweek",
      "version": ">= 0.2.0",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Suggests"
    },
    {
      "package": "outbreaks",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "vdiffr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "cowplot",
      "role": "Suggests"
    }
  ],
  "_owner": "reconhub",
  "_selfowned": true,
  "_usedby": 11,
  "_updates": [
    {
      "week": "2025-25",
      "n": 5
    }
  ],
  "_tags": [],
  "_topics": [
    "outbreak"
  ],
  "_stars": 57,
  "_contributors": [
    {
      "user": "thibautjombart",
      "count": 305,
      "uuid": 10757154
    },
    {
      "user": "zkamvar",
      "count": 289,
      "uuid": 3639446
    },
    {
      "user": "caijun",
      "count": 33,
      "uuid": 2522593
    },
    {
      "user": "jrcpulliam",
      "count": 17,
      "uuid": 4070920
    },
    {
      "user": "sarahxchisholm",
      "count": 15,
      "uuid": 16817233
    },
    {
      "user": "timtaylor",
      "count": 15,
      "uuid": 43499035
    },
    {
      "user": "richfitz",
      "count": 5,
      "uuid": 1558093
    },
    {
      "user": "sangeetabhatia03",
      "count": 3,
      "uuid": 15316049
    },
    {
      "user": "jakobschumacher",
      "count": 3,
      "uuid": 7360912
    },
    {
      "user": "dirkschumacher",
      "count": 2,
      "uuid": 1569647
    }
  ],
  "_userbio": {
    "uuid": 20286215,
    "type": "organization",
    "name": "R Epidemics Consortium",
    "description": "Consortium for epidemics analysis and outbreak response using R"
  },
  "_downloads": {
    "count": 1341,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/incidence"
  },
  "_mentions": 9,
  "_devurl": "https://github.com/reconhub/incidence",
  "_pkgdown": "https://www.repidemicsconsortium.org/incidence/",
  "_searchresults": 562,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/incidence.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/reconhub/incidence",
  "_realowner": "reconhub",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2016-11-03"
    },
    {
      "version": "1.0.1",
      "date": "2016-11-22"
    },
    {
      "version": "1.1.0",
      "date": "2016-12-13"
    },
    {
      "version": "1.1.1",
      "date": "2017-02-15"
    },
    {
      "version": "1.1.2",
      "date": "2017-03-24"
    },
    {
      "version": "1.2.0",
      "date": "2017-05-15"
    },
    {
      "version": "1.2.1",
      "date": "2017-11-12"
    },
    {
      "version": "1.3.0",
      "date": "2018-06-01"
    },
    {
      "version": "1.3.1",
      "date": "2018-06-11"
    },
    {
      "version": "1.4.1",
      "date": "2018-08-24"
    },
    {
      "version": "1.5.0",
      "date": "2018-11-01"
    },
    {
      "version": "1.5.2",
      "date": "2018-11-30"
    },
    {
      "version": "1.5.4",
      "date": "2019-01-15"
    },
    {
      "version": "1.7.0",
      "date": "2019-03-14"
    },
    {
      "version": "1.7.1",
      "date": "2020-03-25"
    },
    {
      "version": "1.7.2",
      "date": "2020-07-24"
    },
    {
      "version": "1.7.3",
      "date": "2020-11-04"
    },
    {
      "version": "1.7.4",
      "date": "2024-05-15"
    },
    {
      "version": "1.7.5",
      "date": "2024-05-31"
    },
    {
      "version": "1.7.6",
      "date": "2025-06-19"
    }
  ],
  "_exports": [
    "add_incidence_fit",
    "as.incidence",
    "bootstrap",
    "cumulate",
    "estimate_peak",
    "find_peak",
    "fit",
    "fit_optim_split",
    "get_counts",
    "get_dates",
    "get_fit",
    "get_info",
    "get_interval",
    "get_n",
    "get_timespan",
    "group_names",
    "group_names<-",
    "incidence",
    "incidence_pal1",
    "incidence_pal1_dark",
    "incidence_pal1_light",
    "make_breaks",
    "pool",
    "scale_x_incidence"
  ],
  "_help": [
    {
      "page": "conversions",
      "title": "Conversion of incidence objects",
      "topics": [
        "as.data.frame.incidence",
        "as.incidence",
        "as.incidence.data.frame",
        "as.incidence.matrix",
        "as.incidence.numeric"
      ]
    },
    {
      "page": "bootstrap",
      "title": "Bootstrap incidence time series",
      "topics": [
        "bootstrap"
      ]
    },
    {
      "page": "cumulate",
      "title": "Compute cumulative 'incidence'",
      "topics": [
        "cumulate",
        "cumulate.default",
        "cumulate.incidence"
      ]
    },
    {
      "page": "accessors",
      "title": "Access various elements of an incidence object",
      "topics": [
        "dim.incidence",
        "get_interval",
        "get_interval.default",
        "get_interval.incidence",
        "get_n",
        "get_n.default",
        "get_n.incidence",
        "get_timespan",
        "get_timespan.default",
        "get_timespan.incidence"
      ]
    },
    {
      "page": "estimate_peak",
      "title": "Estimate the peak date of an incidence curve using bootstrap",
      "topics": [
        "estimate_peak"
      ]
    },
    {
      "page": "find_peak",
      "title": "Find the peak date of an incidence curve",
      "topics": [
        "find_peak"
      ]
    },
    {
      "page": "fit",
      "title": "Fit exponential models to incidence data",
      "topics": [
        "fit",
        "fit_optim_split",
        "print.incidence_fit",
        "print.incidence_fit_list"
      ]
    },
    {
      "page": "get_counts",
      "title": "Get counts from an incidence object",
      "topics": [
        "get_counts",
        "get_counts.incidence"
      ]
    },
    {
      "page": "get_dates",
      "title": "Retrieve dates from an incidence object",
      "topics": [
        "get_dates",
        "get_dates.default",
        "get_dates.incidence"
      ]
    },
    {
      "page": "get_fit",
      "title": "Accessors for 'incidence_fit' objects",
      "topics": [
        "get_fit",
        "get_fit.incidence_fit",
        "get_fit.incidence_fit_list",
        "get_info",
        "get_info.incidence_fit",
        "get_info.incidence_fit_list"
      ]
    },
    {
      "page": "group_names",
      "title": "extract and set group names",
      "topics": [
        "group_names",
        "group_names.default",
        "group_names.incidence",
        "group_names<-",
        "group_names<-.default",
        "group_names<-.incidence",
        "`group_names<-`.default"
      ]
    },
    {
      "page": "incidence",
      "title": "Compute incidence of events from a vector of dates.",
      "topics": [
        "incidence",
        "incidence.character",
        "incidence.Date",
        "incidence.default",
        "incidence.integer",
        "incidence.numeric",
        "incidence.POSIXt",
        "print.incidence"
      ]
    },
    {
      "page": "palettes",
      "title": "Color palettes used in incidence",
      "topics": [
        "incidence_pal1",
        "incidence_pal1_dark",
        "incidence_pal1_light",
        "palettes"
      ]
    },
    {
      "page": "plot.incidence",
      "title": "Plot function for incidence objects",
      "topics": [
        "add_incidence_fit",
        "make_breaks",
        "plot.incidence",
        "plot.incidence_fit",
        "plot.incidence_fit_list",
        "scale_x_incidence"
      ]
    },
    {
      "page": "pool",
      "title": "Pool 'incidence' across groups",
      "topics": [
        "pool"
      ]
    },
    {
      "page": "subset",
      "title": "Subsetting 'incidence' objects",
      "topics": [
        "\"subset.incidence\"",
        "\"[.incidence\"",
        "subset.incidence",
        "[.incidence"
      ]
    }
  ],
  "_readme": "https://github.com/reconhub/incidence/raw/HEAD/README.md",
  "_rundeps": [
    "aweek",
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "conversions.Rmd",
      "filename": "conversions.html",
      "title": "Conversions to and from the incidence class",
      "author": "Thibaut Jombart, Zhian N. Kamvar",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Exporting results",
        "Importing pre-computed incidence"
      ],
      "created": "2017-04-03 15:55:23",
      "modified": "2020-11-03 17:18:51",
      "commits": 6
    },
    {
      "source": "customize_plot.Rmd",
      "filename": "customize_plot.html",
      "title": "Customize plots of incidence",
      "author": "Thibaut Jombart, Zhian N. Kamvar",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Example data: simulated Ebola outbreak",
        "The plot.incidence function",
        "Default behaviour",
        "Changing colors",
        "The default palette",
        "Using different palettes",
        "Specifying colors manually",
        "Example 1: changing a single color",
        "Example 2: changing several colors (note that naming colors is optional)",
        "Example 3: using color to highlight specific groups",
        "Useful ggplot2 tweaks",
        "Changing dates on the x-axis",
        "Changing date format",
        "Changing the grid",
        "Handling non-ISO weeks",
        "Labelling every bin",
        "Changing the legend",
        "Applying the style of European Programme for Intervention Epidemiology Training (EPIET)",
        "Display individual cases"
      ],
      "created": "2016-10-25 08:33:25",
      "modified": "2024-05-15 10:48:16",
      "commits": 17
    },
    {
      "source": "incidence_class.Rmd",
      "filename": "incidence_class.html",
      "title": "Details of the incidence class",
      "author": "Thibaut Jombart, Zhian N. Kamvar",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Structure of an incidence object.",
        "$dates",
        "$counts",
        "$timespan",
        "$interval",
        "$n",
        "$weeks"
      ],
      "created": "2016-10-25 08:33:37",
      "modified": "2020-11-03 17:18:51",
      "commits": 11
    },
    {
      "source": "incidence_fit_class.Rmd",
      "filename": "incidence_fit_class.html",
      "title": "Details of the incidence_fit class",
      "author": "Zhian N. Kamvar",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Structure of an incidence_fit object",
        "Building an incidence_fit object from scratch",
        "Step 1: create the model",
        "Step 2: creation of the $info list:",
        "Step 3: combine lists and create object",
        "Structure of an incidence_fit_list object",
        "Example: A tale of two fits",
        "Example: Nested incidence_fit"
      ],
      "created": "2018-08-21 13:31:04",
      "modified": "2018-11-30 10:08:39",
      "commits": 4
    },
    {
      "source": "overview.Rmd",
      "filename": "overview.html",
      "title": "Overview of the incidence package",
      "author": "Thibaut Jombart, Zhian N. Kamvar",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installing the package",
        "What does it do?",
        "Worked example: simulated Ebola outbreak",
        "Loading the data",
        "Computing and plotting incidence",
        "Handling incidence objects",
        "Modelling incidence"
      ],
      "created": "2016-10-17 11:51:17",
      "modified": "2024-05-15 10:48:16",
      "commits": 23
    }
  ],
  "_score": 11.457978916521727,
  "_indexed": true,
  "_nocasepkg": "incidence",
  "_universes": [
    "reconhub",
    "timtaylor"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.7.6",
      "date": "2026-05-17T07:55:26.000Z",
      "distro": "noble",
      "commit": "bda31a524af302650727b396605729ea02513353",
      "fileid": "fb97455b088c13c47b186e0893205d33488e3ce3f49d79c38bc157b513f99e34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/reconhub/actions/runs/25985085142"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.7.6",
      "date": "2026-05-17T07:55:26.000Z",
      "distro": "noble",
      "commit": "bda31a524af302650727b396605729ea02513353",
      "fileid": "eeced4ef68a09da51bd39d1a5532da948003a9be4dc32737001dd61d29ff7bf3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/reconhub/actions/runs/25985085142"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.7.6",
      "date": "2026-05-17T07:55:21.000Z",
      "commit": "bda31a524af302650727b396605729ea02513353",
      "fileid": "5cc5b6a71201884771f39ce66da0a815921a7bb2c5479d0a0095f1e1aaf9d66f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/reconhub/actions/runs/25985085142"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.7.6",
      "date": "2026-05-17T07:55:02.000Z",
      "commit": "bda31a524af302650727b396605729ea02513353",
      "fileid": "45a7daa84e8f55480d4bf3b7bf2052ca168143acfe48cfa49401d35c836b286f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/reconhub/actions/runs/25985085142"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.7.6",
      "date": "2026-05-17T07:54:36.000Z",
      "commit": "bda31a524af302650727b396605729ea02513353",
      "fileid": "e74fbf42daa7dd120675a0e0efe1a59f1e051e2ff83e76f09aa3b802bd7d9a9b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/reconhub/actions/runs/25985085142"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.7.6",
      "date": "2026-05-17T07:54:33.000Z",
      "commit": "bda31a524af302650727b396605729ea02513353",
      "fileid": "e1ab26335c1b014ddbdde17261697286f3a91c5b7e3c690af76e49339b608c95",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/reconhub/actions/runs/25985085142"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.7.6",
      "date": "2026-05-17T07:54:33.000Z",
      "commit": "bda31a524af302650727b396605729ea02513353",
      "fileid": "2d3edb2690c10045493d1ba6cf08044620c503c66c983db72e9163fba862bc97",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/reconhub/actions/runs/25985085142"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.7.6",
      "date": "2026-06-02T17:23:54.000Z",
      "commit": "bda31a524af302650727b396605729ea02513353",
      "fileid": "fae674994005bc64757c5481770174c415186761543acea8d60413b77e0c1a53",
      "status": "success",
      "buildurl": "https://github.com/r-universe/reconhub/actions/runs/25985085142"
    }
  ]
}