survival: Survival function

View source: R/survival.R

survivalR Documentation

Survival function

Description

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

Usage

survival(t, ObjFrailty)

Arguments

t

time for survival function.

ObjFrailty

an object from the frailtypack fit.

Value

return the value of survival function in t.

Examples



## 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
survival(20,fit.shared)


## End(Not run)



frailtypack documentation built on June 27, 2024, 5:08 p.m.