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

eha (version 2.11.2)

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

3,304

Version

2.11.2

License

GPL (>= 2)

Last Published

November 28th, 2023

Functions in eha (2.11.2)

coxreg.fit

Cox regression
Loglogistic

The Loglogistic Distribution
EV

The EV Distribution
Gompertz

The Gompertz Distribution
age.window

Age cut of survival data
coxreg2

Cox regression
geome.fit

Constant intensity discrete time proportional hazards
Pch

The Piecewise Constant Hazards distribution.
cal.window

Calendar time cut of survival data
oe

Create an oe object
fert

Marital fertility nineteenth century
plotHaz

Graphical comparing of cumulative hazards
hazards

Get baseline hazards atoms from fits from
mort

Male mortality in ages 40-60, nineteenth century
oldmort

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

Frailty experiment
aftreg

Accelerated Failure Time Regression
ltx

LaTeX printing of regression results.
pchreg

Piecewise Constant Proportional Hazards Regression
swepop

Swedish population data, 1969-2020.
aftreg.fit

Parametric proportional hazards regression
Weibull

The (Cumulative) Hazard Function of a Weibull Distribution
scania

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

LaTeX alternative printing of regression results.
plot.weibreg

Plots output from a Weibull regression
coxreg

Cox regression
plot.tpchreg

Plots output from a tpchreg regression
summary.coxreg

A summary of coxreg objects.
summary.aftreg

Prints aftreg objects
summary.tpchreg

Summary for tpchreg objects
piecewise

Piecewise hazards
print.tpchreg

Prints tpchreg objects
print.weibreg

Prints weibreg objects
plot.aftreg

Plots output from an AFT regression
child

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

Loglihood function (partial likelihood) of a Cox regression
summary.phreg

A summary of phreg objects.
compHaz

Graphical comparison of cumulative hazards
import_strata

strata function imported from survival
swedeaths

Swedish death data, 1969-2020.
import_Surv

Surv function imported from survival
wfunk

Loglihood function of a Weibull regression
male.mortality

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

Plots of hazdata objects.
print.aftreg

Prints aftreg objects
print.summary.aftreg

Prints summary.aftreg objects
mlreg

ML proportional hazards regression
check.dist

Graphical goodness-of-fit test
check.surv

Check the integrity of survival data.
print.summary.coxreg

Prints summary.coxreg objects
tpchreg

Proportional hazards regression with piecewise constant hazards and tabular data.
eha-package

eha: Event History Analysis
phreg

Parametric Proportional Hazards Regression
summary.weibreg

Prints a weibreg object
cro

Creates a minimal representation of a data frame.
phreg.fit

Parametric proportional hazards regression
logrank

The Log-rank test
print.phreg

Prints phreg objects
toTpch

Transform survival data to tabular form
logrye

Rye prices, Scania, southern Sweden, 1801-1894.
print.risksets

Prints a summary of the content of a set of risk sets.
phfunc

Loglihood function of a proportional hazards regression
infants

Infant mortality and maternal death, Sweeden 1821--1894.
make.communal

Put communals in "fixed" data frame
join.spells

Straighten up a survival data frame
weibreg.fit

Weibull regression
plot.coxreg

Plot method for coxreg objects
plot.hazdata

Plots of hazdata objects.
print.summary.phreg

Prints summary.phreg objects
plot.phreg

Plots output from a phreg regression
makeham

The Gompertz-Makeham Distribution
perstat

Period statistics
table.events

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

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

Prints coxreg objects
print.summary.tpchreg

Prints summary.tpchreg objects
toBinary

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

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

Prints logrank objects
regtable

Retrieves regression tables
weibreg

Weibull Regression
risksets

Finds the compositions and sizes of risk sets
HiscoHisclass

HISCO to HISCLASS transformation
Lognormal

The Lognormal Distribution
SurvSplit

Split a survival object at specified durations.