Learn R Programming

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

eha (version 2.5.1)

Event History Analysis

Description

Sampling of risk sets in Cox regression, selections in the Lexis diagram, bootstrapping. Parametric proportional hazards fitting with left truncation and right censoring for common families of distributions, piecewise constant hazards, and discrete models. AFT regression for left truncated and right censored data.

Copy Link

Version

Install

install.packages('eha')

Monthly Downloads

3,022

Version

2.5.1

License

GPL (>= 2)

Maintainer

Göran Broström

Last Published

December 6th, 2017

Functions in eha (2.5.1)

Weibull

The (Cumulative) Hazard Function of a Weibull Distribution
Pch

The Piecewise Constant Hazards distribution.
EV

The EV Distribution
SurvSplit

Split a survival object at specified durations.
Lognormal

The Lognormal Distribution
Loglogistic

The Loglogistic Distribution
aftreg.fit

Parametric proportional hazards regression
fert

Marital fertility nineteenth century
age.window

Age cut of survival data
Gompertz

The Gompertz Distribution
frail.fit

Frailty experiment
aftreg

Accelerated Failure Time Regression
check.surv

Check the integrity of survival data.
coxreg

Cox regression
cro

Creates a minimal representation of a data frame.
cal.window

Calendar time cut of survival data
makeham

The Gompertz-Makeham Distribution
check.dist

Graphical goodness-of-fit test
male.mortality

Male mortality in ages 40-60, nineteenth century
eha-defunct

Defunct functions
plot.aftreg

Plots output from an AFT regression
eha-package

eha: Event History Analysis
print.phreg

Prints phreg objects
coxreg.fit

Cox regression
phreg.fit

Parametric proportional hazards regression
mlreg

ML proportional hazards regression
piecewise

Piecewise hazards
mort

Male mortality in ages 40-60, nineteenth century
summary.coxreg

Prints coxreg objects
join.spells

Straighten up a survival data frame
summary.phreg

Prints phreg objects
geome.fit

Constant intensity discrete time proportional hazards
logrye

Rye prices, Scania, southern Sweden, 1801-1894.
infants

Infant mortality and maternal death, Sweeden 1821--1894.
plot.Surv

Plots of survivor functions.
phfunc

Loglihood function of a proportional hazards regression
phreg

Parametric Proportional Hazards Regression
print.risksets

Prints a summary of the content of a set of risk sets.
print.aftreg

Prints aftreg objects
plot.coxreg

Plot method for coxreg objects
print.coxreg

Prints coxreg objects
weibreg

Weibull Regression
plot.hazdata

Plots of survivor functions.
table.events

Calculating failure times, risk set sizes and No. of events in each risk set
scania

Old age mortality, Scania, southern Sweden, 1813-1894.
toBinary

Transforms a "survival" data frame into a data frame suitable for binary (logistic) regression
oldmort

Old age mortality, Sundsvall, Sweden, 1860-1880.
summary.aftreg

Prints aftreg objects
perstat

Period statistics
ltx

LaTeX printing of coxreg results.
plot.phreg

Plots output from a phreg regression
plot.weibreg

Plots output from a Weibull regression
make.communal

Put communals in "fixed" data frame
toDate

Convert time in years since "0000-01-01" to a date.
print.weibreg

Prints weibreg objects
toTime

Calculate duration in years from "0000-01-01" to a given date
weibreg.fit

Weibull regression
risksets

Finds the compositions and sizes of risk sets
summary.weibreg

Prints a weibreg object
swe07

Swedish population and deaths in ages 61--80, 2007.
wfunk

Loglihood function of a Weibull regression