Learn R Programming

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

eha (version 2.4-5)

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

2,858

Version

2.4-5

License

GPL (>= 2)

Maintainer

Göran Broström

Last Published

May 3rd, 2017

Functions in eha (2.4-5)

SurvSplit

aftreg

Accelerated Failure Time Regression
Makeham

The Gompertz-Makeham Distribution
pch

The Piecewise constant hazards (Pch) distribution
Loglogistic

The Loglogistic Distribution
Lognormal

The Lognormal Distribution
EV

The EV Distribution
Gompertz

The Gompertz Distribution
aftreg.fit

Parametric proportional hazards regression
age.window

Age cut of survival data
check.surv

Check the integrity of survival data.
coxreg

Cox regression
cal.window

Calendar time cut of survival data
check.dist

Graphical goodness-of-fit test
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
print.glmmML

Prints a 'glmmML' object.
glmmbootFit

Generalized Linear Models with fixed effects grouping
hweibull

The (Cumulative) Hazard Function of a Weibull Distribution
table.events

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

Transforms a "survival" data frame into a data frame suitable for
fert

Marital fertility nineteenth century
geome.fit

Constant intensity discrete time proportional hazards
mlreg

ML proportional hazards regression
mort

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

Prints aftreg objects
print.glmmboot

Prints a 'glmmML' object.
summary.glmmboot

Summary of a glmmboot object
summary.phreg

Prints phreg objects
ghq

Gauss-Hermite
glmmML

Generalized Linear Models with random intercept
infants

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

Straighten up a survival data frame
plot.Surv

Plots of survivor functions.
plot.aftreg

Plots output from an AFT regression
print.phreg

Prints phreg objects
print.coxreg

Prints coxreg objects
summary.weibreg

Prints a weibreg object
logrye

ltx

oldmort

coxreg.fit

Cox regression
cro

Creates a minimal representation of a data frame.
make.communal

Put communals in "fixed" data frame
male.mortality

Male mortality in ages 40-60, nineteenth century
swe07

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

Period statistics
plot.coxreg

Plot method for
plot.hazdata

Plots of survivor functions.
summary.coxreg

Prints coxreg objects
print.risksets

scania

summary.aftreg

Prints aftreg objects
wfunk

Loglihood function of a Weibull regression
phfunc

Loglihood function of a proportional hazards regression
phreg

Parametric Proportional Hazards Regression
plot.phreg

Plots output from a phreg regression
plot.weibreg

Plots output from a Weibull regression
print.weibreg

Prints weibreg objects
risksets

Finds the compositions and sizes of risk sets
weibreg

Weibull Regression
weibreg.fit

Weibull regression
summary.glmmML

Summary of a glmmML object
toDate

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

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