hazard | R Documentation |
Let t be a continuous variable, we determine the value of the hazard function to t after run fit.
hazard(t, ObjFrailty)
t |
time for hazard function. |
ObjFrailty |
an object from the frailtypack fit. |
return the value of hazard function in t.
## Not run:
#-- 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.