{
  "_id": "6acd7afca14063b82c3ac2ba",
  "Package": "cfrnow",
  "Title": "Real-Time Case Fatality Ratio via a Mixture-Cure Survival Model",
  "Version": "0.4.0",
  "Authors@R": "person(\"Sebastian\", \"Funk\", , \"sebastian.funk@lshtm.ac.uk\",\nrole = c(\"aut\", \"cre\"))",
  "Description": "Estimates a real-time case fatality ratio (CFR) from\nline-list data using a Bayesian mixture-cure survival model,\nregistered as an 'epidist' model type so the CFR and the\nonset-to-death delay both take 'brms' formulas. Each case is\nfatal with probability equal to the CFR and, when fatal, dies\nat an interval-censored onset-to-death delay; cases still alive\nat the observation cut-off are right-censored, which corrects\nthe downward bias of the naive deaths / cases ratio in real\ntime. The delay is co-estimated using the 'primarycensored'\ncensored-distribution machinery.",
  "License": "MIT + file LICENSE",
  "URL": "https://epiforecasts.io/cfrnow/,\nhttps://github.com/epiforecasts/cfrnow",
  "BugReports": "https://github.com/epiforecasts/cfrnow/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Remotes": [
    "epinowcast/epidist",
    "paul-buerkner/brms"
  ],
  "Additional_repositories": "https://stan-dev.r-universe.dev",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://epiforecasts.r-universe.dev",
  "Date/Publication": "2026-10-05 16:50:24 UTC",
  "RemoteUrl": "https://github.com/epiforecasts/cfrnow",
  "RemoteRef": "v0.4.0",
  "RemoteSha": "df7b1da22c40a6beea1fd7983ae76860bfaac555",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-13 00:20:34 UTC",
    "User": "root"
  },
  "Author": "Sebastian Funk [aut, cre]",
  "Maintainer": "Sebastian Funk <sebastian.funk@lshtm.ac.uk>",
  "_user": "epiforecasts",
  "_type": "src",
  "_file": "cfrnow_0.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/f1473b3ddac152e5421ed7706258a91fb926ed9d19be1413edb6f4d529de9e38",
  "_filesize": 659929,
  "_sha256": "f1473b3ddac152e5421ed7706258a91fb926ed9d19be1413edb6f4d529de9e38",
  "_expires": "2027-01-21T00:27:37.000Z",
  "_created": "2026-10-13T00:20:34.000Z",
  "_published": "2026-10-13T00:27:39.934Z",
  "_buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38325297981",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115067247089,
      "time": 361,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11781630180"
    },
    {
      "job": 115067247167,
      "time": 372,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11781645648"
    },
    {
      "job": 115067247140,
      "time": 174,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11780689755"
    },
    {
      "job": 115067247148,
      "time": 188,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11780904355"
    },
    {
      "job": 115062549970,
      "time": 1054,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11780404409"
    },
    {
      "job": 115067247132,
      "time": 347,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11781305453"
    },
    {
      "job": 115067247145,
      "time": 203,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11781270316"
    },
    {
      "job": 115067247189,
      "time": 225,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11781475061"
    },
    {
      "job": 115067247128,
      "time": 179,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11781205355"
    }
  ],
  "_upstream": "https://github.com/epiforecasts/cfrnow",
  "_commit": {
    "id": "df7b1da22c40a6beea1fd7983ae76860bfaac555",
    "author": "Sebastian Funk <sebastian.funk@lshtm.ac.uk>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #62 from epiforecasts/release-0.4.0\n\nRelease cfrnow 0.4.0",
    "time": 1791219024
  },
  "_maintainer": {
    "name": "Sebastian Funk",
    "email": "sebastian.funk@lshtm.ac.uk",
    "login": "sbfnk",
    "mastodon": "@sbfnk@fosstodon.org",
    "bluesky": "@sbfnk.bsky.social",
    "description": "Professor of Infectious Disease Dynamics at LSHTM. epiforecasts.io",
    "uuid": 1156307
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "distspec",
      "version": ">= 0.1.0",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "brms",
      "role": "Imports"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "epidist",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "role": "Imports"
    },
    {
      "package": "primarycensored",
      "version": ">= 1.5.2",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "cmdstanr",
      "role": "Suggests"
    },
    {
      "package": "data.table",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "epiforecasts",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-27",
      "n": 24
    },
    {
      "week": "2026-28",
      "n": 27
    },
    {
      "week": "2026-29",
      "n": 7
    },
    {
      "week": "2026-31",
      "n": 1
    },
    {
      "week": "2026-33",
      "n": 4
    },
    {
      "week": "2026-35",
      "n": 2
    },
    {
      "week": "2026-39",
      "n": 3
    },
    {
      "week": "2026-40",
      "n": 11
    },
    {
      "week": "2026-41",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-07-10"
    },
    {
      "name": "v0.2.0",
      "date": "2026-07-27"
    },
    {
      "name": "v0.2.1",
      "date": "2026-08-10"
    },
    {
      "name": "v0.3.0",
      "date": "2026-09-30"
    },
    {
      "name": "v0.4.0",
      "date": "2026-10-05"
    }
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "sbfnk-bot",
      "count": 188,
      "uuid": 242615673
    },
    {
      "user": "sbfnk",
      "count": 54,
      "uuid": 1156307
    }
  ],
  "_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": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cfrnow"
  },
  "_devurl": "https://github.com/epiforecasts/cfrnow",
  "_pkgdown": "https://epiforecasts.io/cfrnow/",
  "_searchresults": 7,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/cfrnow.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_exports": [
    "as_epidist_cure_model",
    "fit_cfr",
    "posterior_cumulative_incidence",
    "posterior_prob_death",
    "pp_check_cfr",
    "prepare_cfr_data",
    "simulate_linelist"
  ],
  "_help": [
    {
      "page": "as_epidist_cure_model",
      "title": "Build an 'epidist_cure_model' from a line list or 'prepare_cfr_data()' output",
      "concept": [
        "cure_model"
      ],
      "topics": [
        "as_epidist_cure_model"
      ]
    },
    {
      "page": "fit_cfr",
      "title": "Fit the real-time mixture-cure CFR model",
      "concept": [
        "fit"
      ],
      "topics": [
        "fit_cfr"
      ]
    },
    {
      "page": "posterior_cumulative_incidence",
      "title": "Posterior cumulative incidence and hazards of death and recovery",
      "concept": [
        "fit"
      ],
      "topics": [
        "posterior_cumulative_incidence"
      ]
    },
    {
      "page": "posterior_prob_death",
      "title": "Posterior probability of death for each case",
      "concept": [
        "fit"
      ],
      "topics": [
        "posterior_prob_death"
      ]
    },
    {
      "page": "pp_check_cfr",
      "title": "Posterior-predictive check for a cfrnow fit",
      "concept": [
        "fit"
      ],
      "topics": [
        "pp_check_cfr"
      ]
    },
    {
      "page": "prepare_cfr_data",
      "title": "Build model inputs from a line list",
      "topics": [
        "prepare_cfr_data"
      ]
    },
    {
      "page": "simulate_linelist",
      "title": "Simulate a line list for testing and examples",
      "topics": [
        "simulate_linelist"
      ]
    },
    {
      "page": "summary.cfrnow_fit",
      "title": "Summarise a mixture-cure CFR fit",
      "concept": [
        "fit"
      ],
      "topics": [
        "print.cfrnow_fit",
        "summary.cfrnow_fit"
      ]
    }
  ],
  "_pkglogo": "https://github.com/epiforecasts/cfrnow/raw/v0.4.0/man/figures/logo.svg",
  "_readme": "https://github.com/epiforecasts/cfrnow/raw/v0.4.0/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "bayesplot",
    "BH",
    "bridgesampling",
    "brms",
    "Brobdingnag",
    "callr",
    "checkmate",
    "cli",
    "coda",
    "codetools",
    "cpp11",
    "desc",
    "digest",
    "distributional",
    "distspec",
    "dplyr",
    "epidist",
    "farver",
    "future",
    "future.apply",
    "generics",
    "ggdist",
    "ggplot2",
    "ggridges",
    "globals",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "listenv",
    "loo",
    "magrittr",
    "Matrix",
    "matrixStats",
    "mgcv",
    "mvtnorm",
    "nleqslv",
    "nlme",
    "numDeriv",
    "otel",
    "parallelly",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "plyr",
    "posterior",
    "primarycensored",
    "processx",
    "ps",
    "purrr",
    "quadprog",
    "QuickJSR",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "reshape2",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "truncnorm",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "real-time-cfr.Rmd",
      "filename": "real-time-cfr.html",
      "title": "Real-time CFR over time",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulation setup",
        "Fitting a constant and a random-walk model",
        "Weekly estimates from per-case draws",
        "Estimates one week after the last onset",
        "Estimates six weeks after the last onset",
        "Other settings",
        "Interpreting the two estimates"
      ],
      "created": "2026-09-30 10:41:24",
      "modified": "2026-09-30 10:41:24",
      "commits": 1
    },
    {
      "source": "cfrnow.Rmd",
      "filename": "cfrnow.html",
      "title": "Real-time CFR with cfrnow",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The problem",
        "A line list",
        "Preparing the data at a cut-off",
        "Fitting",
        "Covariates and time-varying CFR",
        "Delay family and fixing the delay",
        "Recovery timing",
        "Caveats"
      ],
      "created": "2026-07-01 19:03:34",
      "modified": "2026-09-29 21:22:02",
      "commits": 25
    },
    {
      "source": "stratified-cfr.Rmd",
      "filename": "stratified-cfr.html",
      "title": "Stratified and partially-pooled CFR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why stratify, and why pool",
        "A six-site line list",
        "Three fits: complete, no, and partial pooling",
        "Reading the estimates",
        "Shrinkage",
        "Varying the delay by group",
        "Check the fit"
      ],
      "created": "2026-07-15 15:26:39",
      "modified": "2026-09-23 11:26:27",
      "commits": 4
    }
  ],
  "_score": 4.431363764158988,
  "_indexed": true,
  "_nocasepkg": "cfrnow",
  "_universes": [
    "epiforecasts",
    "sbfnk"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-13T00:26:02.000Z",
      "distro": "resolute",
      "commit": "df7b1da22c40a6beea1fd7983ae76860bfaac555",
      "fileid": "https://r2.ropensci.org/5fc42fc10649f2bce2da5a505884fb0a1fa6f90833e06b6b61c2120f9bbee750",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38325297981"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-13T00:26:08.000Z",
      "distro": "resolute",
      "commit": "df7b1da22c40a6beea1fd7983ae76860bfaac555",
      "fileid": "https://r2.ropensci.org/d3779da7ad7066f27630676f0bea0f94d76e3d1d6099f4f5afbc90b8930115b6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38325297981"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-10-13T00:23:04.000Z",
      "commit": "df7b1da22c40a6beea1fd7983ae76860bfaac555",
      "fileid": "https://r2.ropensci.org/738b434f17232a7cf4074b43c67c385a9d305a3f99fbe39e94ef68c619baed8e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38325297981"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-10-13T00:23:10.000Z",
      "commit": "df7b1da22c40a6beea1fd7983ae76860bfaac555",
      "fileid": "https://r2.ropensci.org/a7379eb322d948bddb4175f5b71bdceca6cedff7394ada61edcfcf6b6decb15e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38325297981"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-10-13T00:26:46.000Z",
      "commit": "df7b1da22c40a6beea1fd7983ae76860bfaac555",
      "fileid": "https://r2.ropensci.org/7bb22b0415d6e781bccc92f997e07114693c0585c966dc3490fa97ba76806a60",
      "status": "success",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38325297981"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-13T00:23:04.000Z",
      "commit": "df7b1da22c40a6beea1fd7983ae76860bfaac555",
      "fileid": "https://r2.ropensci.org/037592240c735fe2e699f6515ed413134aec5df9c0b1c9b8aca59e885721f876",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38325297981"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-13T00:23:43.000Z",
      "commit": "df7b1da22c40a6beea1fd7983ae76860bfaac555",
      "fileid": "https://r2.ropensci.org/955c575323e17b26477b2abd1ce5702be5eb8fac49d44fcdf69b71a338b2a315",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38325297981"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-13T00:22:59.000Z",
      "commit": "df7b1da22c40a6beea1fd7983ae76860bfaac555",
      "fileid": "https://r2.ropensci.org/9613cf28ecaf7d32a93296a0fa20129d6b7bf7dc899a528b05128e3459527444",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/epiforecasts/actions/runs/38325297981"
    }
  ]
}