Learn R Programming

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

Epi (version 0.1)

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.

Copy Link

Version

Install

install.packages('Epi')

Monthly Downloads

8,266

Version

0.1

License

GPL Version 2 or newer.

Maintainer

Bendix Carstensen

Last Published

July 8th, 2025

Functions in Epi (0.1)

Calendar year

Functions representing dates as fractional calendar years
twoby2

Analysis of a two by two table
ncut

Function to group a variable in intervals.
ci.pd

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

Create percentages in a table
Lexis.diagram

Plot a Lexis diagram
Lexis.lines

Draw life lines in a Lexis diagram.
Lexis

Split follow-up time in cohort studies.
float

Calculate floated variances
Life.lines

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

Plot estimates with confidence limits
stat.table

Tables of summary statistics
apc.frame

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

Generate a nested case-control study
ftrend

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

Mantel-Haenszel analyses of cohort and case-control studies
ROC

Function to compute and draw ROC-curves.
rateplot

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

Reorder and combine levels of a factor
apc.lines

Plot APC-estimates in an APC-frame.
ci.lin

Compute linear functions of parameters with s.e.
tabplot

Graphical display of a 2-way contingency table
stattable.funs

Special functions for use in stat.table
nice

Nice breakpoints
nickel

A Cohort of Nickel Smelters in South Wales
brv

Bereavement in an elderly cohort
lep

An unmatched case-control study of leprosy incidence
bdendo

A case-control study of endometrial cancer
bdendo11

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

Diet and heart data