Learn R Programming

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

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

Copy Link

Version

Install

install.packages('eha')

Monthly Downloads

2,858

Version

2.8.1

License

GPL (>= 2)

Maintainer

Göran Broström

Last Published

April 1st, 2020

Functions in eha (2.8.1)

eha-defunct

Defunct functions
eha-package

eha: Event History Analysis
coxreg.fit

Cox regression
ltx

LaTeX printing of coxreg results.
cro

Creates a minimal representation of a data frame.
male.mortality

Male mortality in ages 40-60, nineteenth century
makeham

The Gompertz-Makeham Distribution
check.dist

Graphical goodness-of-fit test
frail.fit

Frailty experiment
aftreg

Accelerated Failure Time Regression
fert

Marital fertility nineteenth century
perstat

Period statistics
join.spells

Straighten up a survival data frame
phfunc

Loglihood function of a proportional hazards regression
logrye

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

ML proportional hazards regression
phreg

Parametric Proportional Hazards Regression
oe

Create an oe object
cal.window

Calendar time cut of survival data
phreg.fit

Parametric proportional hazards regression
print.tpchreg

Prints tpchreg objects
mort

Male mortality in ages 40-60, nineteenth century
toDate

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

Old age mortality, Sundsvall, Sweden, 1860-1880.
toTime

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

Prints a summary of the content of a set of risk sets.
make.communal

Put communals in "fixed" data frame
coxreg

Cox regression
print.weibreg

Prints weibreg objects
plot.aftreg

Plots output from an AFT regression
infants

Infant mortality and maternal death, Sweeden 1821--1894.
geome.fit

Constant intensity discrete time proportional hazards
piecewise

Piecewise hazards
table.events

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

Check the integrity of survival data.
plot.weibreg

Plots output from a Weibull regression
risksets

Finds the compositions and sizes of risk sets
print.aftreg

Prints aftreg objects
plot.phreg

Plots output from a phreg regression
toBinary

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

Weibull Regression
plot.coxreg

Plot method for coxreg objects
summary.weibreg

Prints a weibreg object
plot.tpchreg

Plots output from a tpchreg regression
print.coxreg

Prints coxreg objects
swe07

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

Prints phreg objects
weibreg.fit

Weibull regression
toTpch

Transform a "survival" data frame Surv(enter, exit, event) to tabular form with 'event' and 'exposure' and aggregating
summary.coxreg

Prints coxreg objects
tpchreg

Proportional hazards regression with piecewise constant hazards and tabular data.
wfunk

Loglihood function of a Weibull regression
plot.hazdata

Plots of survivor functions.
summary.phreg

Prints phreg objects
scania

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

Prints aftreg objects
SurvSplit

Split a survival object at specified durations.
age.window

Age cut of survival data
Weibull

The (Cumulative) Hazard Function of a Weibull Distribution
Pch

The Piecewise Constant Hazards distribution.
EV

The EV Distribution
Lognormal

The Lognormal Distribution
aftreg.fit

Parametric proportional hazards regression
Loglogistic

The Loglogistic Distribution
Gompertz

The Gompertz Distribution