baseline_hazard: Baseline Hazard and Cumulative Hazard Evaluation

View source: R/baseline.R

baseline_hazardR Documentation

Baseline Hazard and Cumulative Hazard Evaluation

Description

Computes baseline hazard phi0(t) and cumulative baseline hazard Phi0(t) for Weibull and Generalized Weibull (GW) distributions.

Usage

baseline_hazard(t, baseline = c("weibull", "gw"), par)

Arguments

t

Positive numeric vector of time points.

baseline

Character string specifying baseline distribution: "weibull" or "gw".

par

Numeric vector of parameters: c(lambda, gamma) for Weibull, or c(delta, zeta, xi) for GW.

Value

A named list with components:

H0

Cumulative baseline hazard Phi0(t).

h0

Baseline hazard phi0(t).

References

Mudholkar, G. S., & Srivastava, D. K. (1993). Exponentiated Weibull family for analyzing bathtub failure-rate data. IEEE Transactions on Reliability, 42(2), 299-302.

Examples

bh_weib <- baseline_hazard(1:5, baseline = "weibull", par = c(2, 1.5))
bh_gw <- baseline_hazard(1:5, baseline = "gw", par = c(0.5, 1.2, 1.1))

MultiFrailty documentation built on Aug. 8, 2026, 1:07 a.m.