Package: eha 2.11.4.9000

eha: Event History Analysis

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) <doi:10.1201/9780429503764>.

Authors:Göran Broström [aut, cre], Jianming Jin [ctb]

eha_2.11.4.9000.tar.gz
eha_2.11.4.9000.zip(r-4.5)eha_2.11.4.9000.zip(r-4.4)eha_2.11.4.9000.zip(r-4.3)
eha_2.11.4.9000.tgz(r-4.4-x86_64)eha_2.11.4.9000.tgz(r-4.4-arm64)eha_2.11.4.9000.tgz(r-4.3-x86_64)eha_2.11.4.9000.tgz(r-4.3-arm64)
eha_2.11.4.9000.tar.gz(r-4.5-noble)eha_2.11.4.9000.tar.gz(r-4.4-noble)
eha_2.11.4.9000.tgz(r-4.4-emscripten)eha_2.11.4.9000.tgz(r-4.3-emscripten)
eha.pdf |eha.html
eha/json (API)
NEWS

# Install 'eha' in R:
install.packages('eha', repos = c('https://goranbrostrom.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/goranbrostrom/eha/issues

Uses libs:
  • openblas– Optimized BLAS
Datasets:
  • child - Child mortality, Skellefteå, Sweeden 1850-1900.
  • fert - Marital fertility nineteenth century
  • infants - Infant mortality and maternal death, Sweeden 1821-1894.
  • logrye - Rye prices, Scania, southern Sweden, 1801-1894.
  • male.mortality - Male mortality in ages 40-60, nineteenth century
  • mort - Male mortality in ages 40-60, nineteenth century
  • oldmort - Old age mortality, Sundsvall, Sweden, 1860-1880.
  • scania - Old age mortality, Scania, southern Sweden, 1813-1894.
  • swedeaths - Swedish death data, 1969-2020.
  • swepop - Swedish population data, 1969-2020.

On CRAN:

10.18 score 6 stars 10 packages 308 scripts 4.1k downloads 9 mentions 77 exports 3 dependencies

Last updated 5 months agofrom:754ce45d87. Checks:OK: 7 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 14 2024
R-4.5-win-x86_64NOTEOct 15 2024
R-4.5-linux-x86_64NOTEOct 15 2024
R-4.4-win-x86_64OKNov 14 2024
R-4.4-mac-x86_64OKNov 14 2024
R-4.4-mac-aarch64OKNov 14 2024
R-4.3-win-x86_64OKNov 14 2024
R-4.3-mac-x86_64OKNov 14 2024
R-4.3-mac-aarch64OKNov 14 2024

Exports:aftregaftreg.fitage.windowcal.windowcheck.distcheck.survcompHazcoxfunkcoxregcoxreg.fitcoxreg2crodEVdgompertzdllogisdmakehamdpchgeome.fithazardshEVHEVhgompertzHgompertzHiscoHisclasshllogisHllogishlnormHlnormhmakehamHmakehamhpchHpchhweibullHweibulljoin.spellslogrankltxltx2make.communalmlregmpchoepchregperstatpEVpgompertzphfuncphregphreg.fitpiecewisepllogisplotHazpmakehamppchqEVqgompertzqllogisqmakehamqpchregtablergompertzrisksetsrllogisrmakehamrpchstrataSurvSurvSplittable.eventstoBinarytoDatetoTimetoTpchtpchregweibregweibreg.fitwfunk

Dependencies:latticeMatrixsurvival

Event History and Survival Analysis

Rendered fromeha.Rmdusingknitr::rmarkdownon Nov 14 2024.

Last update: 2020-11-02
Started: 2017-10-11

Parametric duration models

Rendered fromparametric1.Rnwusingutils::Sweaveon Nov 14 2024.

Last update: 2020-12-15
Started: 2020-12-15

Parametric survival models

Rendered fromparametric.Rmdusingknitr::rmarkdownon Nov 14 2024.

Last update: 2021-01-17
Started: 2020-07-23

Proportional hazards regression with tabular data

Rendered fromtpchreg.Rmdusingknitr::rmarkdownon Nov 14 2024.

Last update: 2020-07-24
Started: 2020-07-24

The Gompertz distribution

Rendered fromgompertz.Rmdusingknitr::rmarkdownon Nov 14 2024.

Last update: 2021-01-17
Started: 2020-07-24

Readme and manuals

Help Manual

Help pageTopics
eha: Event History Analysiseha-package eha
Accelerated Failure Time Regressionaftreg
Parametric proportional hazards regressionaftreg.fit
Age cut of survival dataage.window
Calendar time cut of survival datacal.window
Graphical goodness-of-fit testcheck.dist
Check the integrity of survival data.check.surv
Child mortality, Skellefteå, Sweeden 1850-1900.child
Graphical comparison of cumulative hazardscompHaz
Loglihood function (partial likelihood) of a Cox regressioncoxfunk
Cox regressioncoxreg
Cox regressioncoxreg.fit
Cox regressioncoxreg2
Creates a minimal representation of a data frame.cro
The EV DistributiondEV EV HEV hEV pEV qEV rEV
Marital fertility nineteenth centuryfert
Frailty experimentfrail.fit
Constant intensity discrete time proportional hazardsgeome.fit
The Gompertz Distributiondgompertz Gompertz gompertz Hgompertz hgompertz pgompertz qgompertz rgompertz
Get baseline hazards atoms from fits fromhazards
HISCO to HISCLASS transformationHiscoHisclass
'strata' function imported from 'survival'import_strata strata
'Surv' function imported from 'survival'import_Surv Surv
Infant mortality and maternal death, Sweeden 1821-1894.infants
Straighten up a survival data framejoin.spells
The Loglogistic Distributiondllogis Hllogis hllogis Llogis Loglogistic pllogis qllogis rllogis
The Lognormal Distributiondlnorm Hlnorm hlnorm Lnorm Lognormal plnorm qlnorm rlnorm
The Log-rank testlogrank
Rye prices, Scania, southern Sweden, 1801-1894.logrye
LaTeX printing of regression results.ltx
LaTeX alternative printing of regression results.ltx2
Put communals in "fixed" data framemake.communal
The Gompertz-Makeham Distributiondmakeham Hmakeham hmakeham makeham pmakeham qmakeham rmakeham
Male mortality in ages 40-60, nineteenth centurymale.mortality
ML proportional hazards regressionmlreg
Male mortality in ages 40-60, nineteenth centurymort
Create an oe objectoe
Old age mortality, Sundsvall, Sweden, 1860-1880.oldmort
The Piecewise Constant Hazards distribution.dpch Hpch hpch mpch Pch pch ppch qpch rpch
Piecewise Constant Proportional Hazards Regressionpchreg
Period statisticsperstat
Loglihood function of a proportional hazards regressionphfunc
Parametric Proportional Hazards Regressionphreg
Parametric proportional hazards regressionphreg.fit
Piecewise hazardspiecewise
Plots output from an AFT regressionplot.aftreg
Plot method for 'coxreg' objectsplot.coxreg
Plots of hazdata objects.plot.hazdata
Plots of hazdata objects.plot.logrank
Plots output from a phreg regressionplot.phreg
Plots output from a tpchreg regressionplot.tpchreg
Plots output from a Weibull regressionplot.weibreg
Graphical comparing of cumulative hazardsplotHaz
Prints aftreg objectsprint.aftreg
Prints coxreg objectsprint.coxreg
Prints logrank objectsprint.logrank
Prints phreg objectsprint.phreg
Prints a summary of the content of a set of risk sets.print.risksets
Prints summary.aftreg objectsprint.summary.aftreg
Prints summary.coxreg objectsprint.summary.coxreg
Prints summary.phreg objectsprint.summary.phreg
Prints summary.tpchreg objectsprint.summary.tpchreg
Prints tpchreg objectsprint.tpchreg
Prints weibreg objectsprint.weibreg
Retrieves regression tablesregtable
Finds the compositions and sizes of risk setsrisksets
Old age mortality, Scania, southern Sweden, 1813-1894.scania
Prints aftreg objectssummary.aftreg
A summary of coxreg objects.summary.coxreg
A summary of phreg objects.summary.phreg
Summary for tpchreg objectssummary.tpchreg
Prints a weibreg objectsummary.weibreg
Split a survival object at specified durations.SurvSplit
Swedish death data, 1969-2020.swedeaths
Swedish population data, 1969-2020.swepop
Calculating failure times, risk set sizes and No. of events in each risk settable.events
Transforms a "survival" data frame into a data frame suitable for binary (logistic) regressiontoBinary
Convert time in years since "0000-01-01" to a date.toDate
Calculate duration in years from "0000-01-01" to a given datetoTime
Transform survival data to tabular formtoTpch
Proportional hazards regression with piecewise constant hazards and tabular data.tpchreg
Weibull Regressionweibreg
Weibull regressionweibreg.fit
The (Cumulative) Hazard Function of a Weibull DistributionHweibull hweibull Weibull
Loglihood function of a Weibull regressionwfunk