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)
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.
Value
A data.frame in the format as for censdata in ParamSampleCens.