Learn R Programming

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

Epi (version 1.1.7)

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

License

GPL (>= 2)

Maintainer

Bendix Carstensen

Last Published

September 30th, 2009

Functions in Epi (1.1.7)

ROC

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

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

Conversion to diabetes
Lexis.lines

Draw life lines in a Lexis diagram.
merge.data.frame

Merge data frame with a Lexis object
Life.lines

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

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

Fits a regression model to interval censored data.
nice

Nice breakpoints
merge.Lexis

Merge a Lexis object with a data frame
bdendo

A case-control study of endometrial cancer
pctab

Create percentages in a table
ci.cum

Compute cumulative sum of estimates.
float

Calculate floated variances
thoro

Thorotrast Study
apc.frame

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

Draw boxes and arrows for illustration of multistate models.
gmortDK

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

Create a Lexis object
hivDK

hivDK: seroconversion in a cohort of Danish men
NArray

Set up an array of NAs, solely from the list of dimnames
cal.yr

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

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

Function to calculate effects
ncut

Function to group a variable in intervals.
diet

Diet and heart data
mstate.Lexis

Create a dataframe suitable for use with the mstate package.
fit.add

Fit an addive excess risk model to interval censored data.
transform.Lexis

Transform a Lexis objects
plotEst

Plot estimates with confidence limits
Ns

Natural splines - (cubic splines linear beyond outermost knots) with convenient specification of knots and possibility of centering and detrending.
ewrates

Rates of lung and nasal cancer mortality, and total mortality.
Y.dk

Population risk time in Denmark
plot.Lexis

Lexis diagrams
Relevel

Reorder and combine levels of a factor
lungDK

Male lung cancer incidence in Denmark
contr.cum

Contrast matrices
lep

An unmatched case-control study of leprosy incidence
timeBand

Extract time band data from a split Lexis object
fit.mult

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

The Danish National Diabetes Register.
births

Births in a London Hospital
Lexis.diagram

Plot a Lexis diagram
ci.pd

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

Time series methods for Lexis objects
apc.lines

Plot APC-estimates in an APC-frame.
S.typh

Salmonella Typhimurium outbreak 1996 in Denmark.
M.dk

Mortality in Denmark 1974 ff.
blcaIT

Bladder cancer mortality in Italian males
effx.match

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

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

Analysis of a two by two table
foreign.Lexis

Create a data structures suitable for use with packages mstate, etm.
ci.lin

Compute linear functions of parameters with s.e.
N2Y

Create risk time (Person-Years) in Lexis triangles from population data.
brv

Bereavement in an elderly cohort
tabplot

Graphical display of a 2-way contingency table
stat.table

Tables of summary statistics
mortDK

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

Conditional logistic regression
cutLexis

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

Special functions for use in stat.table
bdendo11

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

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

Split follow-up time in a Lexis object
testisDK

Testis cancer incidence in Denmark, 1943--1996
N.dk

Population size in Denmark
stack.Lexis

Functions to facilitate analysis of multistate models.
nickel

A Cohort of Nickel Smelters in South Wales
detrend

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

Functions to manage and explore the workspace
subset.Lexis

Subsetting Lexis objects
plot.apc

Plot the estimates from a fitted Age-Period-Cohort model
pc.lines

Plot period and cohort effects in an APC-frame.
timeScales

The time scales of a Lexis object
occup

A small occupational cohort
ccwc

Generate a nested case-control study
boxes.MS

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

Split follow-up time in cohort studies.
B.dk

Births in Denmark by year and month of birth and sex
Termplot

A wrapper for termplot that optionally (but by default) exponentiates terms, and plot them on a common log-scale. Also scales x-axes to the same physical scale.
simLexis

Simulate a Lexis object representing follow-up in a multistate model.
gen.exp

Generate covariates for drug-exposure follow-up from drug purchase records.