Learn R Programming

eha (version 2.11.5)

Event History Analysis

Description

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. Proportional hazards models for tabular and register data. Sampling of risk sets in Cox regression, selections in the Lexis diagram, bootstrapping. Broström (2022) .

Copy Link

Version

Install

install.packages('eha')

Monthly Downloads

4,473

Version

2.11.5

License

GPL (>= 2)

Last Published

September 20th, 2024

Functions in eha (2.11.5)

check.dist

Graphical goodness-of-fit test
cal.window

Calendar time cut of survival data
age.window

Age cut of survival data
coxreg2

Cox regression
coxfunk

Loglihood function (partial likelihood) of a Cox regression
coxreg

Cox regression
check.surv

Check the integrity of survival data.
coxreg.fit

Cox regression
fert

Marital fertility nineteenth century
compHaz

Graphical comparison of cumulative hazards
hazards

Get baseline hazards atoms from fits from
geome.fit

Constant intensity discrete time proportional hazards
infants

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

strata function imported from survival
import_Surv

Surv function imported from survival
frail.fit

Frailty experiment
mort

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

eha: Event History Analysis
oe

Create an oe object
cro

Creates a minimal representation of a data frame.
logrye

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

The Log-rank test
ltx2

LaTeX alternative printing of regression results.
ltx

LaTeX printing of regression results.
perstat

Period statistics
piecewise

Piecewise hazards
plot.coxreg

Plot method for coxreg objects
phreg

Parametric Proportional Hazards Regression
make.communal

Put communals in "fixed" data frame
plot.hazdata

Plots of hazdata objects.
oldmort

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

The Gompertz-Makeham Distribution
pchreg

Piecewise Constant Proportional Hazards Regression
join.spells

Straighten up a survival data frame
male.mortality

Male mortality in ages 40-60, nineteenth century
plotHaz

Graphical comparing of cumulative hazards
print.aftreg

Prints aftreg objects
phreg.fit

Parametric proportional hazards regression
print.summary.phreg

Prints summary.phreg objects
risksets

Finds the compositions and sizes of risk sets
regtable

Retrieves regression tables
print.phreg

Prints phreg objects
plot.tpchreg

Plots output from a tpchreg regression
phfunc

Loglihood function of a proportional hazards regression
plot.weibreg

Plots output from a Weibull regression
print.summary.aftreg

Prints summary.aftreg objects
print.risksets

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

Prints summary.coxreg objects
print.summary.tpchreg

Prints summary.tpchreg objects
summary.phreg

A summary of phreg objects.
plot.aftreg

Plots output from an AFT regression
summary.coxreg

A summary of coxreg objects.
swedeaths

Swedish death data, 1969-2020.
swepop

Swedish population data, 1969-2020.
scania

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

Prints aftreg objects
mlreg

ML proportional hazards regression
plot.logrank

Plots of hazdata objects.
print.coxreg

Prints coxreg objects
toTpch

Transform survival data to tabular form
print.tpchreg

Prints tpchreg objects
wfunk

Loglihood function of a Weibull regression
print.logrank

Prints logrank objects
summary.tpchreg

Summary for tpchreg objects
summary.weibreg

Prints a weibreg object
print.weibreg

Prints weibreg objects
plot.phreg

Plots output from a phreg regression
table.events

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

Weibull Regression
toTime

Calculate duration in years from "0000-01-01" to a given date
toDate

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

Weibull regression
toBinary

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

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

The Lognormal Distribution
EV

The EV Distribution
aftreg

Accelerated Failure Time Regression
aftreg.fit

Parametric proportional hazards regression
Gompertz

The Gompertz Distribution
Pch

The Piecewise Constant Hazards distribution.
child

Child mortality, Skellefteå, Sweeden 1850--1900.
SurvSplit

Split a survival object at specified durations.
Weibull

The (Cumulative) Hazard Function of a Weibull Distribution
HiscoHisclass

HISCO to HISCLASS transformation
Loglogistic

The Loglogistic Distribution