Is it possible to model BOTH censoring and truncation in BUGS?

Survival times are often right censored and left truncated. From my experience, it does not seem like OpenBUGS allows for both. Truncation is denoted as T( , ) and censoring as C( ,). For instance, a censored observation known to lie above 10 days, but cannot have been observed below 2 days (left truncation) seem like it should be coded as thus:

y[i]~dexp(lambda)T(2 , )C(10, )


where the absent second values denote no upper limits. But it seems OpenBUGS can only do one or the other; using both in the code invariably results in a compilation error. Since this is a typical and reasonable modeling scenario, is there any way to do this in OpenBUGS?

• If you're not beholden to OpenBUGS, you can do this in R. Mar 30, 2014 at 15:02
• Thanks, I know how it can be done in JAGS, but I was curious about BUGS. Seems like there should be a way, but perhaps not.
– ATJ
Mar 30, 2014 at 19:06