Learn R Programming

⚠️There's a newer version (2.60) of this package.Take me there.

Epi (version 0.2)

A package for statistical analysis in epidemiology.

Description

Useful functions for demographic and epidemiological analysis in the Lexis diagram, i.e. register and cohort follow-up data. Also contains some epidemiological datasets.

Copy Link

Version

Install

install.packages('Epi')

Monthly Downloads

8,266

Version

0.2

License

GPL Version 2 or newer.

Maintainer

Bendix Carstensen

Last Published

July 8th, 2025

Functions in Epi (0.2)

ccwc

Generate a nested case-control study
Calendar year

Functions representing dates as fractional calendar years
Lexis.lines

Draw life lines in a Lexis diagram.
mh

Mantel-Haenszel analyses of cohort and case-control studies
apc.frame

Produce an empty frame for display of parameter-estimates from Age-Period-Cohort-models.
bdendo

A case-control study of endometrial cancer
blcaIT

Bladder cancer mortality in Italian males
twoby2

Analysis of a two by two table
nice

Nice breakpoints
lungDK

Male lung cancer incidence in Denmark
apc.lines

Plot APC-estimates in an APC-frame.
pctab

Create percentages in a table
tabplot

Graphical display of a 2-way contingency table
ftrend

Fit a floating trend to a factor in generalized linear model
ROC

Function to compute and draw ROC-curves.
rateplot

Functions to plot rates from a table classified by age and calendar time (period)
stattable.funs

Special functions for use in stat.table
ci.pd

Compute confidence limits for a difference of two independent proportions.
mortDK

Population mortality rates for Denmark in 1-year age-classes.
Life.lines

Compute dates/ages for life lines in a Lexis diagram
births

Births in a London Hospital
Lexis

Split follow-up time in cohort studies.
Relevel

Reorder and combine levels of a factor
Lexis.diagram

Plot a Lexis diagram
ncut

Function to group a variable in intervals.
ci.lin

Compute linear functions of parameters with s.e.
stat.table

Tables of summary statistics
thoro

Thorotrast Study
float

Calculate floated variances
plotEst

Plot estimates with confidence limits
S.typh

Salmonella Typhimurium outbreak 1996 in Denmark.
lep

An unmatched case-control study of leprosy incidence
brv

Bereavement in an elderly cohort
diet

Diet and heart data
nickel

A Cohort of Nickel Smelters in South Wales
gmortDK

Population mortality rates for Denmark in 5-years age groups.
bdendo11

A 1:1 subset of the endometrial cancer case-control study