Functions for Epidemiological Analysis using Population Data
Overview
Enables computation of epidemiological statistics, including those where counts or mortality rates of the reference population are used. Currently supported: excess hazard models (Dickman, Sloggett, Hills, and Hakulinen (2012) doi:10.1002/sim.1597), rates, mean survival times, relative/net survival (in particular the Ederer II (Ederer and Heise (1959)) and Pohar Perme (Pohar Perme, Stare, and Esteve (2012) doi:10.1111/j.1541-0420.2011.01640.x) estimators), and standardized incidence and mortality ratios, all of which can be easily adjusted for by covariates such as age. Fast splitting and aggregation of 'Lexis' objects (from package 'Epi') and other computations achieved using 'data.table'.
popEpi::Lexis_dt
New function Lexis_dt, a wrapper of Epi::Lexis which also sets class to
c("Lexis", "data.table", "data.frame").
popEpi::Lexis_fpa
Lexis_fpa output is now also a data.table, so the complete class vector
is c("Lexis", "data.table", "data.frame").
popEpi::splitMulti
Fixed popEpi::splitMulti when merge = FALSE. Did not include lex.dur
previously which caused an error.
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: popEpi/tests/testthat/test_epi.R (.Names: 1) '.Names' should be changed to 'names'.
- NOTE8 OK, 5 NOTENow
- NOTE12 OK, 1 NOTE2026-07-15
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 64 (1 internal)includes a package overview page
- Examples that run
- 100%36 run in a plain check
- Exported functions with examples
- 76%
- Documented parameters
- 99%
- Return-value docs
- 97%
- Help pages citing references
- 9%
Downloads
Repository
- PRs merged (all time)
- 67%
- Median days to close, 50 most recently updated closed issues
- 2,131
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/finnishcancerregistry/popepi on 2026-10-22.
The R CMD check workflow runs on Linux
Dependencies
Installing popEpi adds 25 packages (17 with compiled code, 18 MB of source tarballs). Heaviest: data.table 5.7 MB, Epi 3.3 MB, Rcpp 1.8 MB.
Code & Tests
Datasets
People & History
Maintainer since 0.2.1 (2015)
Show 4 peopleHide 4 people
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.5.0Latest
- 0.4.142026-02-12 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.4.132025-01-31 · diff ↗
- 0.4.122024-05-10 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.4.112023-08-23 · diff ↗
- RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2022-09-25
- 0.4.102022-09-25 · diff ↗
- archivedRemoved from CRAN2022-08-24issues were not corrected in time
- RR 4.2.0 released · 2022-04-22
- unarchivedReturned to CRAN2021-10-29
- 0.4.92021-10-29 · diff ↗ ·
added 10 exports
array_to_long_df, array_to_long_dt, array_to_ratetable, long_df_to_array, long_df_to_ratetable, long_dt_to_array, long_dt_to_ratetable, ratetable_to_array, ratetable_to_long_df, ratetable_to_long_dt - archivedRemoved from CRAN2021-10-13check problems were not corrected in time
Show 19 earlier eventsHide 19 earlier events
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.4.8
- RR 3.6.0 released · 2019-04-26
- 0.4.72019-03-18 · diff ↗
- 0.4.62019-02-14 · diff ↗
- 0.4.52018-05-16 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.4.42017-11-14 · diff ↗
- 0.4.32017-09-05 · diff ↗
- 0.4.22017-08-10 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.4.1
- 0.4.0
- RR 3.3.0 released · 2016-05-03
- 0.3.12016-04-25 · diff ↗
- 0.3.02016-03-31 · diff ↗ ·
removed 12 exports
as.data.frame.ratetable, as.data.table.ratetable, as.pe.Lexis, as.pe.data.table, as.pe.list, lines.survtab, plot.pe, plot.sir, plot.sirspline, plot.survtab, print.sir, print.sirsplineadded 8 exports
adjust, aggre, as.aggre, prepExpo, rate, relpois_ag, setaggre, survtab_ag - 0.2.12015-09-29
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-09-29
- Total releases
- 19 / 11 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL-3 in 0.4.11
- Minimum R
- ≥ 3.5
- Bundled data
- 294 KB / 7 files
- Download size
- 1.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("popEpi")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-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.