Learn R Programming

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

Epi (version 1.1.20)

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, including interval censored data and representation of multistate 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

1.1.20

License

GPL-2

Last Published

March 1st, 2011

Functions in Epi (1.1.20)

ci.pd

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

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

A small occupational cohort
Lexis

Create a Lexis object
bdendo

A case-control study of endometrial cancer
clogistic

Conditional logistic regression
fit.add

Fit an addive excess risk model to interval censored data.
ci.lin

Compute linear functions of parameters with s.e.
start.Lexis

Time series methods for Lexis objects
nickel

A Cohort of Nickel Smelters in South Wales
plot.Lexis

Lexis diagrams
stack.Lexis

Functions to facilitate analysis of multistate models.
Lexis.diagram

Plot a Lexis diagram
cal.yr

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

Create percentages in a table
effx

Function to calculate effects
apc.lines

Plot APC-estimates (and other things) in an APC-frame.
diet

Diet and heart data
Relevel

Reorder and combine levels of a factor
subset.Lexis

Subsetting Lexis objects
DMconv

Conversion to diabetes
thoro

Thorotrast Study
merge.data.frame

Merge data frame with a Lexis object
DMlate

The Danish National Diabetes Register.
detrend

Projection of a model matrix on to the orthogonal complement of a trend.
Life.lines

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

Graphical display of a 2-way contingency table
float

Calculate floated variances
ccwc

Generate a nested case-control study
cutLexis

Cut follow-up at a specified date for each person.
apc.fit

Fit an Age-Period-Cohort model to tabular data.
blcaIT

Bladder cancer mortality in Italian males
mortDK

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

Functions to manage and explore the workspace
S.typh

Salmonella Typhimurium outbreak 1996 in Denmark.
nice

Nice breakpoints
bdendo11

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

Fits a regression model to interval censored data.
apc.frame

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

The time scales of a Lexis object
births

Births in a London Hospital
ROC

Function to compute and draw ROC-curves.
fit.mult

Fits a multiplicative relative risk model to interval censored data.
lungDK

Male lung cancer incidence in Denmark
ci.cum

Compute cumulative sum of estimates.
effx.match

Function to calculate effects for individually matched case-control studies
hivDK

hivDK: seroconversion in a cohort of Danish men
apc.plot

Plot the estimates from a fitted Age-Period-Cohort model
contr.cum

Contrast matrices
msdata.Lexis

Create a dataframe suitable for use with the mstate package.
transform.Lexis

Transform a Lexis objects
lep

An unmatched case-control study of leprosy incidence
mh

Mantel-Haenszel analyses of cohort and case-control studies
stattable.funs

Special functions for use in stat.table
tbox

Draw boxes and arrows for illustration of multistate models.
ftrend

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

Function to group a variable in intervals.
plotEst

Plot estimates with confidence limits
merge.Lexis

Merge a Lexis object with a data frame
timeBand

Extract time band data from a split Lexis object
stat.table

Tables of summary statistics
rateplot

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

Rates of lung and nasal cancer mortality, and total mortality.
Lexis.lines

Draw life lines in a Lexis diagram.
brv

Bereavement in an elderly cohort
twoby2

Analysis of a two by two table
splitLexis

Split follow-up time in a Lexis object