Learn R Programming

coxsei (version 0.3)

Surv: 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

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab