Learn R Programming

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

eha (version 2.4-6)

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. Binary and Poisson regression for clustered data, fixed and random effects with bootstrapping.

Copy Link

Version

Install

install.packages('eha')

Monthly Downloads

3,022

Version

2.4-6

License

GPL (>= 2)

Maintainer

Göran Broström

Last Published

September 22nd, 2017

Functions in eha (2.4-6)

Loglogistic

The Loglogistic Distribution
Lognormal

The Lognormal Distribution
aftreg.fit

Parametric proportional hazards regression
age.window

Age cut of survival data
EV

The EV Distribution
Gompertz

The Gompertz Distribution
SurvSplit

Split a survival object at specified durations.
aftreg

Accelerated Failure Time Regression
Makeham

The Gompertz-Makeham Distribution
pch

The Piecewise constant hazards (Pch) distribution
ghq

Gauss-Hermite
glmmML

Generalized Linear Models with random intercept
cal.window

Calendar time cut of survival data
check.dist

Graphical goodness-of-fit test
infants

Infant mortality and maternal death, Sweeden 1821--1894.
join.spells

Straighten up a survival data frame
mlreg

ML proportional hazards regression
mort

Male mortality in ages 40-60, nineteenth century
print.aftreg

Prints aftreg objects
print.coxreg

Prints coxreg objects
print.weibreg

Prints weibreg objects
coxreg.fit

Cox regression
cro

Creates a minimal representation of a data frame.
glmmbootFit

Generalized Linear Models with fixed effects grouping
hweibull

The (Cumulative) Hazard Function of a Weibull Distribution
check.surv

Check the integrity of survival data.
coxreg

Cox regression
logrye

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

LaTeX printing of coxreg results.
phfunc

Loglihood function of a proportional hazards regression
phreg

Parametric Proportional Hazards Regression
plot.coxreg

Plot method for coxreg objects
oldmort

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

Period statistics
print.phreg

Prints phreg objects
print.risksets

Prints a summary of the content of a set of risk sets.
glmmML.fit

Generalized Linear Model with random intercept
glmmboot

Generalized Linear Models with fixed effects grouping
phreg.fit

Parametric proportional hazards regression
piecewise

Piecewise hazards
plot.phreg

Plots output from a phreg regression
plot.weibreg

Plots output from a Weibull regression
summary.weibreg

Prints a weibreg object
fert

Marital fertility nineteenth century
geome.fit

Constant intensity discrete time proportional hazards
make.communal

Put communals in "fixed" data frame
male.mortality

Male mortality in ages 40-60, nineteenth century
scania

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

Prints aftreg objects
wfunk

Loglihood function of a Weibull regression
summary.coxreg

Prints coxreg objects
summary.glmmML

Summary of a glmmML object
toDate

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

Plots of survivor functions.
plot.Surv

Plots of survivor functions.
plot.aftreg

Plots output from an AFT regression
print.glmmML

Prints a 'glmmML' object.
print.glmmboot

Prints a 'glmmML' object.
summary.glmmboot

Summary of a glmmboot object
summary.phreg

Prints phreg objects
weibreg

Weibull Regression
weibreg.fit

Weibull regression
swe07

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

Calculating failure times, risk set sizes and No. of events in each risk set
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
risksets

Finds the compositions and sizes of risk sets