{
  "_id": "6acd7194a14063b82c3ab96f",
  "Package": "incidental",
  "Title": "Implements Empirical Bayes Incidence Curves",
  "Version": "0.1",
  "Authors@R": "c(person(\"Andrew\", \"Miller\", email = \"acmiller@apple.com\",\nrole = c(\"aut\")),\nperson(\"Lauren\", \"Hannah\", email = \"lauren_hannah@apple.com\",\nrole = c(\"aut\", \"cre\")),\nperson(\"Nicholas\", \"Foti\", email = \"nicholas_foti@apple.com\",\nrole = \"aut\"),\nperson(\"Joseph\", \"Futoma\", email = \"jfutoma@apple.com\",\nrole = \"aut\"),\nperson(\"Apple, Inc.\", email = \"hai@apple.com\", role = \"cph\"))",
  "Description": "Make empirical Bayes incidence curves from reported case\ndata using a specified delay distribution.",
  "License": "MIT + file LICENSE",
  "LazyData": "true",
  "RoxygenNote": "7.1.1",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-12 23:13:47 UTC",
    "User": "root"
  },
  "Author": "Andrew Miller [aut], Lauren Hannah [aut, cre], Nicholas Foti\n[aut], Joseph Futoma [aut], Apple, Inc. [cph]",
  "Maintainer": "Lauren Hannah <lauren_hannah@apple.com>",
  "Repository": "https://cranhaven.r-universe.dev",
  "Date/Publication": "2026-10-12 11:02:00 UTC",
  "RemoteUrl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "RemoteRef": "package/incidental",
  "RemoteSha": "e370933c251d0a8d6eee61e6a2bdeef062b4de7e",
  "RemoteSubdir": "incidental",
  "_user": "cranhaven",
  "_type": "src",
  "_file": "incidental_0.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/0f6e03a133aa7e112681b15811b9bb70434e6383102bf48aa9608fddf20f0e43",
  "_filesize": 4538181,
  "_sha256": "0f6e03a133aa7e112681b15811b9bb70434e6383102bf48aa9608fddf20f0e43",
  "_expires": "2027-01-20T23:47:28.000Z",
  "_created": "2026-10-12T23:13:47.000Z",
  "_published": "2026-10-12T23:47:32.913Z",
  "_buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320735221",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115048979065,
      "time": 145,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11778134503"
    },
    {
      "job": 115048979066,
      "time": 138,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11778877332"
    },
    {
      "job": 115048979073,
      "time": 123,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11779808209"
    },
    {
      "job": 115048979041,
      "time": 107,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11779523866"
    },
    {
      "job": 115048017493,
      "time": 195,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11778827821"
    },
    {
      "job": 115048979044,
      "time": 89,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11778977142"
    },
    {
      "job": 115048979183,
      "time": 107,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11778518758"
    },
    {
      "job": 115048979170,
      "time": 100,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11778702429"
    },
    {
      "job": 115048979180,
      "time": 85,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11778972181"
    }
  ],
  "_upstream": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_commit": {
    "id": "e370933c251d0a8d6eee61e6a2bdeef062b4de7e",
    "author": "GitHub Action <action@github.com>",
    "committer": "GitHub Action <action@github.com>",
    "message": "Add incidental to CRANhaven, because archived on 2026-10-12 11:02:00 +0000\n",
    "time": 1791802920
  },
  "_maintainer": {
    "name": "Lauren Hannah",
    "email": "lauren_hannah@apple.com"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "matrixStats",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "dlnm",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "cranhaven",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "archived",
    "packages",
    "r-universe"
  ],
  "_stars": 5,
  "_contributors": [
    {
      "user": "henrikbengtsson",
      "count": 183,
      "uuid": 1616850
    }
  ],
  "_userbio": {
    "uuid": 161993010,
    "type": "organization",
    "name": "cranhaven",
    "followers": 3,
    "description": "CRANhaven - Repository for Recently Archived CRAN Packages"
  },
  "_downloads": {
    "count": 298,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/incidental"
  },
  "_devurl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_searchresults": 10,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/incidental.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1",
      "date": "2020-09-16"
    }
  ],
  "_exports": [
    "compute_expected_cases",
    "compute_log_incidence",
    "data_check",
    "data_processing",
    "fit_incidence",
    "front_zero_pad",
    "incidence_to_df",
    "init_params",
    "make_ar_extrap_samps",
    "make_likelihood_matrix",
    "make_spline_basis",
    "marg_loglike_poisson",
    "marg_loglike_poisson_fisher",
    "marg_loglike_poisson_grad",
    "poisson_objective",
    "poisson_objective_grad",
    "regfun",
    "regfun_grad",
    "regfun_hess",
    "sample_laplace_log_incidence_poisson",
    "scan_spline_dof",
    "scan_spline_lam",
    "train_and_validate",
    "train_val_split"
  ],
  "_datasets": [
    {
      "name": "covid_delay_dist",
      "title": "Delay distribution from COVID-19 pandemic.",
      "object": "covid_delay_dist",
      "class": [
        "data.frame"
      ],
      "fields": [
        "days",
        "case",
        "hospitalization",
        "death"
      ],
      "rows": 61,
      "table": true,
      "tojson": true
    },
    {
      "name": "covid_new_york_city",
      "title": "New York City data from the COVID-19 pandemic.",
      "object": "covid_new_york_city",
      "class": [
        "data.frame"
      ],
      "fields": [
        "date",
        "borough",
        "case",
        "hospitalization",
        "death"
      ],
      "rows": 615,
      "table": true,
      "tojson": true
    },
    {
      "name": "spanish_flu",
      "title": "Daily flu mortality from 1918 flu pandemic.",
      "object": "spanish_flu_mortality",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Date",
        "Indiana",
        "Kansas",
        "Philadelphia"
      ],
      "rows": 122,
      "table": true,
      "tojson": true
    },
    {
      "name": "spanish_flu_delay_dist",
      "title": "Delay distribution from 1918 flu pandemic.",
      "object": "spanish_flu_delay_distribution",
      "class": [
        "data.frame"
      ],
      "fields": [
        "days",
        "proportion"
      ],
      "rows": 31,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "compute_expected_cases",
      "title": "Compute expected cases",
      "topics": [
        "compute_expected_cases"
      ]
    },
    {
      "page": "compute_log_incidence",
      "title": "Compute log likelihood of incidence model",
      "topics": [
        "compute_log_incidence"
      ]
    },
    {
      "page": "covid_delay_dist",
      "title": "Delay distribution from COVID-19 pandemic.",
      "topics": [
        "covid_delay_dist"
      ]
    },
    {
      "page": "covid_new_york_city",
      "title": "New York City data from the COVID-19 pandemic.",
      "topics": [
        "covid_new_york_city"
      ]
    },
    {
      "page": "data_check",
      "title": "Input data check",
      "topics": [
        "data_check"
      ]
    },
    {
      "page": "data_processing",
      "title": "Data processing wrapper",
      "topics": [
        "data_processing"
      ]
    },
    {
      "page": "diff_trans",
      "title": "Transpose of the 1st difference operator",
      "topics": [
        "diff_trans"
      ]
    },
    {
      "page": "fit_incidence",
      "title": "Fit incidence curve to reported data",
      "topics": [
        "fit_incidence"
      ]
    },
    {
      "page": "front_zero_pad",
      "title": "Pad reported data with zeros in front",
      "topics": [
        "front_zero_pad"
      ]
    },
    {
      "page": "incidence_to_df",
      "title": "Export incidence model to data frame",
      "topics": [
        "incidence_to_df"
      ]
    },
    {
      "page": "init_params",
      "title": "Initialize spline parameters (beta)",
      "topics": [
        "init_params"
      ]
    },
    {
      "page": "make_ar_extrap_samps",
      "title": "Make AR samples for extrapolation past end point",
      "topics": [
        "make_ar_extrap_samps"
      ]
    },
    {
      "page": "make_likelihood_matrix",
      "title": "Make delay likelihood matrix",
      "topics": [
        "make_likelihood_matrix"
      ]
    },
    {
      "page": "make_spline_basis",
      "title": "Create spline basis matrix",
      "topics": [
        "make_spline_basis"
      ]
    },
    {
      "page": "marg_loglike_poisson",
      "title": "Marginal log likelihood This function computes the marginal probability of Pr(reported | beta).  Note that lnPmat must be zero padded enough (or censored) to match the length of reported cases vector.",
      "topics": [
        "marg_loglike_poisson"
      ]
    },
    {
      "page": "marg_loglike_poisson_fisher",
      "title": "Marginal log likelihood Fisher information matrix",
      "topics": [
        "marg_loglike_poisson_fisher"
      ]
    },
    {
      "page": "marg_loglike_poisson_grad",
      "title": "Marginal log likelihood gradient",
      "topics": [
        "marg_loglike_poisson_grad"
      ]
    },
    {
      "page": "plot.incidence_spline_model",
      "title": "Plot model from fit_incidence",
      "topics": [
        "plot.incidence_spline_model"
      ]
    },
    {
      "page": "poisson_objective",
      "title": "Poisson objective function",
      "topics": [
        "poisson_objective"
      ]
    },
    {
      "page": "poisson_objective_grad",
      "title": "Poisson objective function gradient",
      "topics": [
        "poisson_objective_grad"
      ]
    },
    {
      "page": "poisson_objective_post_cov_approx",
      "title": "Compute Fisher information matrix for Poisson objective",
      "topics": [
        "poisson_objective_post_cov_approx"
      ]
    },
    {
      "page": "regfun",
      "title": "Beta regularization function",
      "topics": [
        "regfun"
      ]
    },
    {
      "page": "regfun_grad",
      "title": "Beta regularization function gradient",
      "topics": [
        "regfun_grad"
      ]
    },
    {
      "page": "regfun_hess",
      "title": "Beta regularization function Hessian",
      "topics": [
        "regfun_hess"
      ]
    },
    {
      "page": "sample_laplace_log_incidence_poisson",
      "title": "Generate Laplace samples of incidence",
      "topics": [
        "sample_laplace_log_incidence_poisson"
      ]
    },
    {
      "page": "scan_spline_dof",
      "title": "Scan spline degrees of freedom",
      "topics": [
        "scan_spline_dof"
      ]
    },
    {
      "page": "scan_spline_lam",
      "title": "Scan spline regularization parameter",
      "topics": [
        "scan_spline_lam"
      ]
    },
    {
      "page": "spanish_flu",
      "title": "Daily flu mortality from 1918 flu pandemic.",
      "topics": [
        "spanish_flu"
      ]
    },
    {
      "page": "spanish_flu_delay_dist",
      "title": "Delay distribution from 1918 flu pandemic.",
      "topics": [
        "spanish_flu_delay_dist"
      ]
    },
    {
      "page": "train_and_validate",
      "title": "Train and validate model on reported data",
      "topics": [
        "train_and_validate"
      ]
    },
    {
      "page": "train_val_split",
      "title": "Split reported case data",
      "topics": [
        "train_val_split"
      ]
    }
  ],
  "_readme": "https://github.com/cranhaven/cranhaven.r-universe.dev/raw/package/incidental/incidental/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dlnm",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "MASS",
    "Matrix",
    "matrixStats",
    "mgcv",
    "nlme",
    "numDeriv",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "tsModel",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "incidental-tutorial.Rmd",
      "filename": "incidental-tutorial.html",
      "title": "incidental-tutorial",
      "engine": "knitr::rmarkdown",
      "headings": [
        "incidental",
        "Data Format",
        "Model Fitting",
        "Model Outputs",
        "Advanced Usage",
        "Linear Extrapolation",
        "Hyperparameter Tuning",
        "Hyperparameter Selection Methods",
        "Validation Likelihood Hyperparameter Selection"
      ],
      "created": "2026-10-12 11:02:00",
      "modified": "2026-10-12 11:02:00",
      "commits": 1
    }
  ],
  "_score": 3.3979400086720375,
  "_indexed": false,
  "_nocasepkg": "incidental",
  "_universes": [
    "cranhaven"
  ],
  "_indexurl": "https://cran.r-universe.dev/incidental",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1",
      "date": "2026-10-12T23:16:58.000Z",
      "distro": "resolute",
      "commit": "e370933c251d0a8d6eee61e6a2bdeef062b4de7e",
      "fileid": "https://r2.ropensci.org/0c833de643bcd9461ac471ed37e61047768b60e1fbe499642b588ad0493cf9e3",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320735221"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1",
      "date": "2026-10-12T23:16:55.000Z",
      "distro": "resolute",
      "commit": "e370933c251d0a8d6eee61e6a2bdeef062b4de7e",
      "fileid": "https://r2.ropensci.org/17e7c11e56b234c9cdd07acc7df170bcd63db6043bcfba4c464abde6746791be",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320735221"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1",
      "date": "2026-10-12T23:46:43.000Z",
      "commit": "e370933c251d0a8d6eee61e6a2bdeef062b4de7e",
      "fileid": "https://r2.ropensci.org/723a4783986c03662f85555d60fa020ce1feae6f56603a75de59790499faf373",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320735221"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1",
      "date": "2026-10-12T23:46:07.000Z",
      "commit": "e370933c251d0a8d6eee61e6a2bdeef062b4de7e",
      "fileid": "https://r2.ropensci.org/bc6681871b10adcc9b2cf23b52bb95eff91d65403850a8a1c0d124583398c1fb",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320735221"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1",
      "date": "2026-10-12T23:16:35.000Z",
      "commit": "e370933c251d0a8d6eee61e6a2bdeef062b4de7e",
      "fileid": "https://r2.ropensci.org/25eab8bb0a2eb5141f46f7a9c8906e0be62ec01dad9990aaa6a21a8a5d91a89c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320735221"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1",
      "date": "2026-10-12T23:16:15.000Z",
      "commit": "e370933c251d0a8d6eee61e6a2bdeef062b4de7e",
      "fileid": "https://r2.ropensci.org/d8c148a0f04cd8a30324923bcd07139f6f10681e3cd40199e50d1173bcf69f0f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320735221"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1",
      "date": "2026-10-12T23:16:13.000Z",
      "commit": "e370933c251d0a8d6eee61e6a2bdeef062b4de7e",
      "fileid": "https://r2.ropensci.org/112e679222f5cc9e7cc241016adb89cc7338816a122b40e704e1dc66574ffb92",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320735221"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1",
      "date": "2026-10-12T23:16:00.000Z",
      "commit": "e370933c251d0a8d6eee61e6a2bdeef062b4de7e",
      "fileid": "https://r2.ropensci.org/482eb152ea4c3610388a9c088ca7d157a794af2d37b2ade9f411b6427cca3153",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320735221"
    }
  ]
}