CumInt | R Documentation |
Calculate the cumulative/integrated hazard/intensity function
CumInt(x, int, ...)
x |
the value at which to calculate the cumulative function value |
int |
the intensity/hazard rate function. Has to be vectorized. |
... |
the arguments to be passed in to control the behavior of the
underlying |
Relies on the numerical integration routine of R.
The value(s) of the cumulative hazard function at the specified
x
value(s).
The validity of the user supplied intensity function is not checked.
Not intended to be called by the user directly.
Feng Chen <feng.chen@unsw.edu.au>
curve(CumInt(x,int=function(y)1*( y>=0 & y<2)+3*(y>=2 & y<3)+1*(y>=3)),
0,5,xlab="t",ylab="H(t) of a piece-wise constant hazard fun h(t)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.