Package: cfrnow 0.4.0
cfrnow: Real-Time Case Fatality Ratio via a Mixture-Cure Survival Model
Estimates a real-time case fatality ratio (CFR) from line-list data using a Bayesian mixture-cure survival model, registered as an 'epidist' model type so the CFR and the onset-to-death delay both take 'brms' formulas. Each case is fatal with probability equal to the CFR and, when fatal, dies at an interval-censored onset-to-death delay; cases still alive at the observation cut-off are right-censored, which corrects the downward bias of the naive deaths / cases ratio in real time. The delay is co-estimated using the 'primarycensored' censored-distribution machinery.
Authors:
cfrnow_0.4.0.tar.gz
cfrnow_0.4.0.zip(r-4.7-any)cfrnow_0.4.0.zip(r-4.6-any)cfrnow_0.4.0.zip(r-4.5-any)
cfrnow_0.4.0.tgz(r-4.6-any)cfrnow_0.4.0.tgz(r-4.5-any)
cfrnow_0.4.0.tar.gz(r-4.7-any)cfrnow_0.4.0.tar.gz(r-4.6-any)
cfrnow_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cfrnow/json (API)
| # Install 'cfrnow' in R: |
| install.packages('cfrnow', repos = c('https://epiforecasts.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/epiforecasts/cfrnow/issues
Pkgdown/docs site:https://epiforecasts.io
Last updated from:df7b1da22c (on v0.4.0). Checks:7 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | NOTE | 361 | ||
| source / vignettes | OK | 1054 | ||
| linux-release | NOTE | 372 | ||
| macos-release | NOTE | 188 | ||
| macos-oldrel | NOTE | 174 | ||
| windows-devel | NOTE | 203 | ||
| windows-release | NOTE | 179 | ||
| windows-oldrel | NOTE | 225 | ||
| wasm-release | OK | 347 |
Exports:as_epidist_cure_modelfit_cfrposterior_cumulative_incidenceposterior_prob_deathpp_check_cfrprepare_cfr_datasimulate_linelist
Dependencies:abindbackportsbayesplotBHbridgesamplingbrmsBrobdingnagcallrcheckmateclicodacodetoolscpp11descdigestdistributionaldistspecdplyrepidistfarverfuturefuture.applygenericsggdistggplot2ggridgesglobalsgluegridExtragtableinlineisobandlabelinglatticelifecyclelistenvloomagrittrMatrixmatrixStatsmgcvmvtnormnleqslvnlmenumDerivotelparallellypillarpkgbuildpkgconfigplyrposteriorprimarycensoredprocessxpspurrrquadprogQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelreshape2rlangrstanrstantoolsS7scalesStanHeadersstringistringrtensorAtibbletidyrtidyselecttruncnormutf8vctrsviridisLitewithr
Last update: 2026-09-30
Started: 2026-09-30
Last update: 2026-09-29
Started: 2026-07-01
Last update: 2026-09-23
Started: 2026-07-15
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Build an 'epidist_cure_model' from a line list or 'prepare_cfr_data()' output | as_epidist_cure_model |
| Fit the real-time mixture-cure CFR model | fit_cfr |
| Posterior cumulative incidence and hazards of death and recovery | posterior_cumulative_incidence |
| Posterior probability of death for each case | posterior_prob_death |
| Posterior-predictive check for a cfrnow fit | pp_check_cfr |
| Build model inputs from a line list | prepare_cfr_data |
| Simulate a line list for testing and examples | simulate_linelist |
| Summarise a mixture-cure CFR fit | print.cfrnow_fit summary.cfrnow_fit |