Surv {coxsei}R Documentation

Survival function

Description

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

Usage

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

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)

[Package coxsei version 0.3 Index]