Quant {coxsei} | R Documentation |
Quantile function
Description
calculates the value of the quantile function (inverse of the distribution function) of the survival variable with given intensity/hazard function.
Usage
Quant(p, int, tolerance = .Machine$double.eps, ...)
Arguments
p |
the (probability) values to calculate the quantiles at |
int |
the intensity/hazard function. Has to be vectorized. |
tolerance |
tolerated numerical error in inverting the distribution function. |
... |
arguments to be passed to |
Value
a numerical value or vector giving the values of the quantile function
at x
Author(s)
Feng Chen <feng.chen@unsw.edu.au>
Examples
curve(Quant(x,int=function(x)3*x^2),from=1e-3,to=1 - 1e-3)
curve(qweibull(x,shape=3),col=3,lty=3,add=TRUE)
[Package coxsei version 0.3 Index]