hazard: Hazard function.

hazardR Documentation

Hazard function.

Description

Let t be a continuous variable, we determine the value of the hazard function to t after run fit.

Usage

hazard(t, ObjFrailty)

Arguments

t

time for hazard function.

ObjFrailty

an object from the frailtypack fit.

Value

return the value of hazard function in t.

Examples





#-- a fit Shared
data(readmission)
fit.shared <- frailtyPenal(Surv(time,event)~dukes+cluster(id)+
strata(sex),n.knots=10,kappa=c(10000,10000),data=readmission)

#-- calling survival
hazard(20,fit.shared)





frailtypack documentation built on Nov. 25, 2023, 9:06 a.m.