trany | R Documentation |
This function transforms the observed survival times into [0,1].
trany(y, tau = max(y) + 0.1, type = 1, a = tau, b = 1, c = 0)
y |
A vector of observed times to be transformed. |
tau |
A constant denoting the upper bound of the observed data. |
type |
Type of the transformation, 1: Gamma type, 2: Weibull type, and other values: uniform |
a |
Parameter a in the transformation. |
b |
Parameter b in the transformation. |
c |
Parameter c in the transformation. |
Returns the transformed values in [0,1].
y=rexp(100) trany(y=y,tau=10,type=1,a=10,b=2,c=0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.