HR.weibull: Function for calculating Weibull based hazard rate H0

Description Usage Arguments Details Value

Description

Weibull function describing the hazard rate as function of the time.

Usage

1
HR.weibull(t, lambda, ni, inv = FALSE)

Arguments

t

time

lambda

λ parameter of Weibull function

ni

ν parameter of Weibull equation

inv

if FALSE returns the inverse value of baseline hazard, if TRUE returns the baseline hazard.

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

\frac{1}{H_0 ≤ft ( t \right )}=≤ft ( λ^{-1}t \right )^{\frac{1}{ν}}

or

H_0 ≤ft ( t \right )=≤ft ( λ^{-1}t \right )^{-\frac{1}{ν}}

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.