censorContVar: Censor a vector of continuous numbers
Description
Given a vector of realizations of a continuous random variable, interval-, left-, or right-censor these numbers at given boundaries. Useful when setting up simulations involving censored observations.
Usage
censorContVar(x, LLOD = NA, ULOD = NA)
Value
A data.frame as specified by code = interval2 in Surv.
Arguments
x
Vector of random numbers.
LLOD
Lower limit where x should be left-censored at. If no left-censoring, set to NA.
ULOD
Upper limit where x should be left-censored at. If no left-censoring, set to NA.