Learn R Programming

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

eha (version 2.6.0)

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. Parametric accelerated failure time models for left truncated and right censored data.

Copy Link

Version

Install

install.packages('eha')

Monthly Downloads

5,139

Version

2.6.0

License

GPL (>= 2)

Maintainer

Göran Broström

Last Published

July 13th, 2018

Functions in eha (2.6.0)

frail.fit

Frailty experiment
makeham

The Gompertz-Makeham Distribution
summary.aftreg

Prints aftreg objects
ltx

LaTeX printing of coxreg results.
perstat

Period statistics
male.mortality

Male mortality in ages 40-60, nineteenth century
plot.hazdata

Plots of survivor functions.
make.communal

Put communals in "fixed" data frame
oldmort

Old age mortality, Sundsvall, Sweden, 1860-1880.
geome.fit

Constant intensity discrete time proportional hazards
phreg

Parametric Proportional Hazards Regression
plot.coxreg

Plot method for coxreg objects
join.spells

Straighten up a survival data frame
risksets

Finds the compositions and sizes of risk sets
logrye

Rye prices, Scania, southern Sweden, 1801-1894.
plot.aftreg

Plots output from an AFT regression
infants

Infant mortality and maternal death, Sweeden 1821--1894.
phfunc

Loglihood function of a proportional hazards regression
mlreg

ML proportional hazards regression
plot.weibreg

Plots output from a Weibull regression
plot.phreg

Plots output from a phreg regression
scania

Old age mortality, Scania, southern Sweden, 1813-1894.
summary.coxreg

Prints coxreg objects
weibreg.fit

Weibull regression
table.events

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

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

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

Loglihood function of a Weibull regression
mort

Male mortality in ages 40-60, nineteenth century
phreg.fit

Parametric proportional hazards regression
print.weibreg

Prints weibreg objects
weibreg

Weibull Regression
piecewise

Piecewise hazards
print.coxreg

Prints coxreg objects
print.risksets

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

Prints aftreg objects
toTime

Calculate duration in years from "0000-01-01" to a given date
print.phreg

Prints phreg objects
summary.weibreg

Prints a weibreg object
summary.phreg

Prints phreg objects
toDate

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

The Gompertz Distribution
EV

The EV Distribution
aftreg.fit

Parametric proportional hazards regression
check.surv

Check the integrity of survival data.
Weibull

The (Cumulative) Hazard Function of a Weibull Distribution
aftreg

Accelerated Failure Time Regression
Pch

The Piecewise Constant Hazards distribution.
SurvSplit

Split a survival object at specified durations.
cal.window

Calendar time cut of survival data
Loglogistic

The Loglogistic Distribution
check.dist

Graphical goodness-of-fit test
age.window

Age cut of survival data
coxreg.fit

Cox regression
cro

Creates a minimal representation of a data frame.
Lognormal

The Lognormal Distribution
eha-defunct

Defunct functions
coxreg

Cox regression
fert

Marital fertility nineteenth century
eha-package

eha: Event History Analysis