| baseline_hazard | R Documentation |
Computes baseline hazard phi0(t) and cumulative baseline hazard Phi0(t)
for Weibull and Generalized Weibull (GW) distributions.
baseline_hazard(t, baseline = c("weibull", "gw"), par)
t |
Positive numeric vector of time points. |
baseline |
Character string specifying baseline distribution: |
par |
Numeric vector of parameters: |
A named list with components:
H0 |
Cumulative baseline hazard |
h0 |
Baseline hazard |
Mudholkar, G. S., & Srivastava, D. K. (1993). Exponentiated Weibull family for analyzing bathtub failure-rate data. IEEE Transactions on Reliability, 42(2), 299-302.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.