Surv: Survival function

Description Usage Arguments Value Author(s) Examples

View source: R/Surv.R

Description

Evaluate the survival function corresponding to the given intensity/hazard function.

Usage

1
Surv(x, int, ...)

Arguments

x

value to calculate the value of the survival function for

int

the intensity/hazard function

...

further arguments to be passed to CumInt

Value

a numerical value or vector giving the value(s) of the survival function at x

Author(s)

Feng Chen <feng.chen@unsw.edu.au>

Examples

1
2
curve(Surv(x, int=function(x)3*x^2), from=0, to=5)
curve(pweibull(x,shape=3,lower=FALSE), add=TRUE, col=2, lty=3)

coxsei documentation built on Feb. 8, 2020, 9:07 a.m.