Learn R Programming

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

Epi (version 1.1.10)

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

8,038

Version

1.1.10

License

GPL (>= 2)

Maintainer

Bendix Carstensen

Last Published

December 24th, 2009

Functions in Epi (1.1.10)

Lexis.lines

Draw life lines in a Lexis diagram.
tbox

Draw boxes and arrows for illustration of multistate models.
bdendo11

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

Conversion to diabetes
DMlate

The Danish National Diabetes Register.
cal.yr

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

Plot a Lexis diagram
merge.data.frame

Merge data frame with a Lexis object
hivDK

hivDK: seroconversion in a cohort of Danish men
float

Calculate floated variances
nice

Nice breakpoints
mstate.Lexis

Create a dataframe suitable for use with the mstate package.
mortDK

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

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

Generate a nested case-control study
lungDK

Male lung cancer incidence in Denmark
births

Births in a London Hospital
Lexis

Create a Lexis object
stattable.funs

Special functions for use in stat.table
S.typh

Salmonella Typhimurium outbreak 1996 in Denmark.
Icens

Fits a regression model to interval censored data.
effx

Function to calculate effects
lep

An unmatched case-control study of leprosy incidence
ftrend

Fit a floating trend to a factor in generalized linear model
Life.lines

Compute dates/ages for life lines in a Lexis diagram
apc.fit

Fit an Age-Period-Cohort model to tabular data.
W.Lexis

Split follow-up time in cohort studies.
timeBand

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

Tables of summary statistics
diet

Diet and heart data
apc.plot

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

Thorotrast Study
ncut

Function to group a variable in intervals.
blcaIT

Bladder cancer mortality in Italian males
ewrates

Rates of lung and nasal cancer mortality, and total mortality.
fit.add

Fit an addive excess risk model to interval censored data.
timeScales

The time scales of a Lexis object
detrend

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

Compute linear functions of parameters with s.e.
fit.mult

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

A case-control study of endometrial cancer
apc.lines

Plot APC-estimates in an APC-frame.
Relevel

Reorder and combine levels of a factor
brv

Bereavement in an elderly cohort
contr.cum

Contrast matrices
plotEst

Plot estimates with confidence limits
plot.Lexis

Lexis diagrams
effx.match

Function to calculate effects for individually matched case-control studies
ci.pd

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

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

Compute cumulative sum of estimates.
occup

A small occupational cohort
twoby2

Analysis of a two by two table
mh

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

Graphical display of a 2-way contingency table
pctab

Create percentages in a table
splitLexis

Split follow-up time in a Lexis object
subset.Lexis

Subsetting Lexis objects
nickel

A Cohort of Nickel Smelters in South Wales
transform.Lexis

Transform a Lexis objects
start.Lexis

Time series methods for Lexis objects
rateplot

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

Functions to facilitate analysis of multistate models.
ROC

Function to compute and draw ROC-curves.
cutLexis

Cut follow-up at a specified date for each person.
merge.Lexis

Merge a Lexis object with a data frame