Learn R Programming

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

Epi (version 1.1.15)

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.15

License

GPL-2

Maintainer

Bendix Carstensen

Last Published

June 19th, 2010

Functions in Epi (1.1.15)

stat.table

Tables of summary statistics
transform.Lexis

Transform a Lexis objects
fit.add

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

Create percentages in a table
S.typh

Salmonella Typhimurium outbreak 1996 in Denmark.
merge.Lexis

Merge a Lexis object with a data frame
Lexis.diagram

Plot a Lexis diagram
DMconv

Conversion to diabetes
blcaIT

Bladder cancer mortality in Italian males
plotEst

Plot estimates with confidence limits
thoro

Thorotrast Study
Life.lines

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

Fit an Age-Period-Cohort model to tabular data.
ci.pd

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

Create a Lexis object
Lexis.lines

Draw life lines in a Lexis diagram.
ncut

Function to group a variable in intervals.
nice

Nice breakpoints
cal.yr

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

Conditional logistic regression
lungDK

Male lung cancer incidence in Denmark
ftrend

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

Split follow-up time in a Lexis object
timeBand

Extract time band data from a split Lexis object
plot.Lexis

Lexis diagrams
lls

Functions to manage and explore the workspace
mh

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

An unmatched case-control study of leprosy incidence
stack.Lexis

Functions to facilitate analysis of multistate models.
apc.frame

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

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

Fits a regression model to interval censored data.
ccwc

Generate a nested case-control study
nickel

A Cohort of Nickel Smelters in South Wales
diet

Diet and heart data
Relevel

Reorder and combine levels of a factor
DMlate

The Danish National Diabetes Register.
effx.match

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

A small occupational cohort
ewrates

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

Calculate floated variances
mortDK

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

Merge data frame with a Lexis object
apc.lines

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

Graphical display of a 2-way contingency table
ci.lin

Compute linear functions of parameters with s.e.
twoby2

Analysis of a two by two table
subset.Lexis

Subsetting Lexis objects
apc.plot

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

Births in a London Hospital
bdendo

A case-control study of endometrial cancer
ROC

Function to compute and draw ROC-curves.
mstate.Lexis

Create a dataframe suitable for use with the mstate package.
contr.cum

Contrast matrices
hivDK

hivDK: seroconversion in a cohort of Danish men
fit.mult

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

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

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

The time scales of a Lexis object
rateplot

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

Compute cumulative sum of estimates.
brv

Bereavement in an elderly cohort
stattable.funs

Special functions for use in stat.table
cutLexis

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

Function to calculate effects
tbox

Draw boxes and arrows for illustration of multistate models.
start.Lexis

Time series methods for Lexis objects