HR.gompertz: Function for calculating Gompertz based hazard rate H0

Description Usage Arguments Details Value

Description

Gompertz function describing the hazard rate as function of the time

Usage

1
HR.gompertz(t, lambda, alpha, inv = FALSE)

Arguments

t

time

lambda

λ parameter of Gompertz function

alpha

α parameter of Gompertz equation

Details

Given a Cox fit object returned by a coxph function this function calulates the parameters to achieve the value of baseline hazard rate as function of the time. The result returned by function is either

H_0 ≤ft ( t \right )=≤ft [\frac{1}{α}log≤ft ( \frac{α}{λ}t+1 \right ) \right ]^{-1}

or

\frac{1}{H_0 ≤ft ( t \right )}=\frac{1}{α}log≤ft ( \frac{α}{λ}t+1 \right )

Value

A numeric vector of the baseline hazard values H_{0}≤ft (t \right) or their inverse H_{0}^{-1}≤ft ( t \right ).


kbolab/distrcox documentation built on May 20, 2019, 8:10 a.m.