trany: Transform the observed survival times into [0,1]

View source: R/trany.r

tranyR Documentation

Transform the observed survival times into [0,1]

Description

This function transforms the observed survival times into [0,1].

Usage

trany(y, tau = max(y) + 0.1, type = 1, a = tau, b = 1, c = 0)

Arguments

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.

Value

Returns the transformed values in [0,1].

Examples

y=rexp(100)
trany(y=y,tau=10,type=1,a=10,b=2,c=0.5)


marvels2031/PWEALL_1.4.0 documentation built on April 22, 2022, 12:52 a.m.