Learn R Programming

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

Epi (version 0.6.2)

A package for statistical analysis in epidemiology.

Description

Functions for demographic and epidemiological analysis in the Lexis diagram, i.e. register and cohort follow-up data. Also some useful functions for tabulation and plotting. Contains some epidemiological datasets.

Copy Link

Version

Install

install.packages('Epi')

Monthly Downloads

11,182

Version

0.6.2

License

GPL Version 2 or newer.

Last Published

October 1st, 2024

Functions in Epi (0.6.2)

cal.yr

Functions to convert character, factor and various date objects into a number, and vice versa.
ccwc

Generate a nested case-control study
births

Births in a London Hospital
bdendo

A case-control study of endometrial cancer
fcut1

Cut follow-up time at a failure time.
Relevel

Reorder and combine levels of a factor
projection.ip

Projection of columns of a matrix.
apc.fit

Fit an Age-Period-Cohort model to tabular data.
Life.lines

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

Projection of a model matrix on to the orthogonal complement of a trend.
ci.lin

Compute linear functions of parameters with s.e.
pctab

Create percentages in a table
ci.cum

Compute cumulative sum of estimates.
ex1

Split follow-up time along a timescale
Lexis.diagram

Plot a Lexis diagram
apc.plot

Plot the estimates from a fitted Age-Period-Cohort model
thoro

Thorotrast Study
isec

Determine the intersection between follow-up intervals and a fixed interval.
stat.table

Tables of summary statistics
ewrates

Rates of lung and nasal cancer mortality, and total mortality.
float

Calculate floated variances
mh

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

Fit a floating trend to a factor in generalized linear model
ci.pd

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

Function to cut the follow-up in cohort at a point in time.
mortDK

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

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

Special functions for use in stat.table
Lexis.lines

Draw life lines in a Lexis diagram.
nice

Nice breakpoints
lungDK

Male lung cancer incidence in Denmark
apc.frame

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

Cuts follow-up time at multiple failure times.
ROC

Function to compute and draw ROC-curves.
plotEst

Plot estimates with confidence limits
ncut

Function to group a variable in intervals.
Lexis

Split follow-up time in cohort studies.
apc.lines

Plot APC-estimates in an APC-frame.
blcaIT

Bladder cancer mortality in Italian males
twoby2

Analysis of a two by two table
rateplot

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

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

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

Bereavement in an elderly cohort
diet

Diet and heart data
nickel

A Cohort of Nickel Smelters in South Wales
S.typh

Salmonella Typhimurium outbreak 1996 in Denmark.
lep

An unmatched case-control study of leprosy incidence