Learn R Programming

coxsei (version 0.3)

Dist: Distribution function

Description

Calculate the value at x of the distribution function associated with the intensity/hazard function probived through int.

Usage

Dist(x, int, ...)

Arguments

x

the value to evaluate the distribution function at.

int

vectorized function specifying the intensity/hazard function

arguments to be passed to the integrate function

Value

A number between 0 and 1 inclusive, that gives the value of the distribution function at the specified x value.

Examples

Run this code
# NOT RUN {
curve(Dist(x,int=function(x)3*x^2),0,5)
curve(pweibull(x,shape=3),0,5,add=TRUE,col=3,lty=3)
# }

Run the code above in your browser using DataLab