Skip to content

Epi

Statistical Analysis in Epidemiology

v2.65 · Apr 15, 2026 · GPL-2

Description

Functions for demographic and epidemiological analysis in the Lexis diagram, i.e. register and cohort follow-up data. In particular representation, manipulation, rate estimation and simulation for multistate data - the Lexis suite of functions, which includes interfaces to 'mstate', 'etm' and 'cmprsk' packages. Contains functions for Age-Period-Cohort and Lee-Carter modeling and a function for interval censored data. Has functions for extracting and manipulating parameter estimates and predicted values (ci.lin and its cousins), as well as a number of epidemiological data sets.

Downloads

CRAN

9.4K

Last 30 days

1193rd

35.4K

Last 90 days

147.1K

Last year

Trend: -26.4% (30d vs prior 30d)

r2u CRAN

142

Last 30 days

932

Last 90 days

2.8K

Last year

Trend: -14.5% (30d vs prior 30d)

autoCRAN

6

Last 7 days

13

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

376

Last 30 days

1.7K

Last 90 days

11.3K

Last year

Trend: -51% (30d vs prior 30d)

c2d4u legacy CRAN

12

Last 30 days

39

Last 90 days

52

Last year

Trend: -29.4% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

256 154 exported

Complexity

6.1 avg / 73 max

Call network

256 nodes / 223 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Compare versions

Code

Structure

Lines of code

34,953

Files

276

Compiled share

1.8%

Has compiled src

Yes

Language breakdown

R 10,993 (31.5%)C/C++/src 635 (1.8%)Docs 10,286 (29.4%)Vignettes 13,039 (37.3%)

API

Exported functions

194

Internal functions

63

Recent export changes

v3.0.1+4 simLexis, plot.pState, nState +1 more
v2.7.1+2 summary.Lexis, print.summary.Lexis  −2 tab.Lexis, tab

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

98.8%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

50%

Unsafe pattern score

15

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

87

First release

2005-02-05

Latest release

2026-04-15

Avg cadence

50 days

Cold removal rate

100%

Dep drift

16

LOC over versions

v2.1.0: 5,429 LOCv0.1: 5,429 LOCv0.2: 5,570 LOCv0.4: 5,559 LOCv2.1.1: 5,559 LOCv2.3.0: 6,998 LOCv0.6.0: 6,988 LOCv0.6.2: 6,998 LOCv0.7.0: 7,973 LOCv2.5.0: 7,973 LOCv1.0.5: 10,027 LOCv1.0.7: 9,968 LOCv2.6.2: 9,968 LOCv2.7.1: 10,008 LOCv1.0.8: 10,008 LOCv1.0.10: 10,073 LOCv2.9.0: 10,082 LOCv1.0.12: 10,082 LOCv1.1.2: 10,678 LOCv2.10.0: 10,915 LOCv1.1.7: 10,915 LOCv2.10.1: 11,004 LOCv1.1.9: 11,004 LOCv1.1.10: 11,003 LOCv2.11.0: 11,520 LOCv1.1.12: 11,520 LOCv2.11.1: 11,667 LOCv1.1.14: 11,667 LOCv1.1.15: 11,663 LOCv2.12.0: 11,673 LOCv1.1.17: 11,673 LOCv2.12.2: 12,345 LOCv1.1.20: 11,670 LOCv1.1.24: 11,567 LOCv1.1.33: 12,345 LOCv2.14.2: 12,528 LOCv1.1.34: 12,528 LOCv2.15.1: 12,545 LOCv1.1.36: 12,545 LOCv1.1.40: 12,587 LOCv2.15.3: 12,823 LOCv1.1.44: 12,823 LOCv3.0.1: 13,283 LOCv1.1.49: 13,283 LOCv1.1.65: 15,262 LOCv1.1.67: 18,798 LOCv1.1.71: 15,779 LOCv2.0: 16,031 LOCv2.7: 17,737 LOCv2.10: 18,689 LOCv2.11: 18,768 LOCv2.12: 18,767 LOCv2.15: 19,077 LOCv2.16: 19,334 LOCv2.19: 19,348 LOCv2.24: 19,920 LOCv2.26: 24,433 LOCv2.28: 24,568 LOCv2.30: 25,841 LOCv2.32: 26,635 LOCv2.34: 27,229 LOCv2.35: 31,458 LOCv2.37: 31,609 LOCv2.38: 31,674 LOCv2.40: 31,955 LOCv2.41: 31,910 LOCv2.42: 31,875 LOCv2.43: 33,708 LOCv2.44: 34,126 LOCv2.46: 33,003 LOCv2.47: 32,904 LOCv2.47.1: 25,779 LOCv2.48: 25,965 LOCv2.50: 33,556 LOCv2.51: 26,269 LOCv2.52: 26,388 LOCv2.53: 33,794 LOCv2.55: 26,416 LOCv2.56: 26,418 LOCv2.57: 26,535 LOCv2.58: 26,537 LOCv2.59: 26,682 LOCv2.60: 34,241 LOCv2.61: 36,561 LOCv2.63: 36,820 LOCv2.64: 36,820 LOCv2.65: 34,953 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (18)

Dependency Network

Dependencies Reverse dependencies cmprsk etm MASS survival plyr dplyr Matrix numDeriv data.table zoo mgcv magrittr bshazard cohorttools dani Greg MCARtest TwoTimeScales climatehealth codeCollection flexrsurv popEpi pubh biostat3 catregs fmsb mable +3 more reverse deps Epi

Version History

71 tracked
updated 2.65 ← 2.64 diff Apr 15, 2026
updated 2.64 ← 2.63 diff Mar 26, 2026
updated 2.63 ← 2.61 diff Mar 20, 2026
new 2.61 Mar 10, 2026
updated 2.61 ← 2.60 diff Oct 6, 2025
updated 2.60 ← 2.59 diff Jul 7, 2025
updated 2.59 ← 2.58 diff Jan 12, 2025
updated 2.58 ← 2.57 diff Nov 24, 2024
updated 2.57 ← 2.56 diff Nov 15, 2024
updated 2.56 ← 2.55 diff Sep 30, 2024
updated 2.55 ← 2.53 diff Sep 10, 2024
updated 2.53 ← 2.52 diff Jul 17, 2024
updated 2.52 ← 2.51 diff Jul 9, 2024
updated 2.51 ← 2.50 diff Jun 12, 2024
updated 2.50 ← 2.48 diff May 26, 2024