Days Alive and Out of Hospital (DAOH) Calculation
Overview
Calculates Days Alive and Out of Hospital (DAOH) from administrative admission/discharge/mortality data using three algorithms (nights, days, exact) and three death-handling approaches (midday, midnight, zero). Includes tools for comparing methods (Bland-Altman, ICC, reclassification), and plotting.
Changes (default units)
- DAOH is now reported in **days by default** across the package, for a single consistent and interpretable unit.
bland_altman_daoh(),plot_daoh_dist(),daoh_reclassify(),daoh_reclassify_centile(), anddaoh_icc()now default touse_pc = FALSE(days); passuse_pc = TRUEfor percentage of the period. daoh_summary()gains ause_pcargument (defaultFALSE, days).- **Behaviour change:** code relying on the previous percentage defaults must now pass
use_pc = TRUE. Fordaoh_icc()anddaoh_reclassify()the result is unchanged (the statistic is invariant to the per-period rescaling); forbland_altman_daoh(),plot_daoh_dist(), anddaoh_summary()the reported values switch from percentage to days.
---
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK6 OK2026-06-20
Documentation
- Help pages
- 18 (3 internal)includes a package overview page
- Examples that run
- 78%7 run in a plain check · 2 hold no code
- Exported functions with examples
- 50%
- Documented parameters
- 77%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Releases over time
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/davecumin/daoh on 2026-10-11.
Dependencies
Installing daoh adds 18 packages (8 with compiled code, 19 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, isoband 1.5 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.2.6Latest
- 0.1.02026-06-19
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-19
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 4.7 KB / 3 files
- Download size
- 137 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("daoh")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.